code: func AuthGroupPermissionsByPermissionID(db XODB, permissionID int) ([]*AuthGroupPermission, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`id, group_id, permission_id ` +
  		`FROM django.auth_group_permissions ` +
  		`WHERE permission_id = ?`
  
  	// run query
  	XOLog(sqlstr, permissionID)
  	q, err := db.Query(sqlstr, permissionID)
  	if err != nil {
  		return nil, err
  	}
  	defer q.Close()
  
  	// load results
  	res := []*AuthGroupPermission{}
  	for q.Next() {
  		agp := AuthGroupPermission{
  			_exists: true,
  		}
  
  		// scan
  		err = q.Scan(&agp.ID, &agp.GroupID, &agp.PermissionID)
  		if err != nil {
  			return nil, err
  		}
  
  		res = append(res, &agp)
  	}
  
  	return res, nil
  }
docs: // AuthGroupPermissionsByPermissionID retrieves a row from 'django.auth_group_permissions' as a AuthGroupPermission.
  //
  // Generated from index 'auth_group_permissi_permission_id_84c5c92e_fk_auth_permission_id'.