anchor.diff:  <% end %>
   	whereParams := []interface{}{}
   	whereParams = append(append(whereParams, _p.WhereParams...), idParams...)
  -	<%= param_name_plural %>, err := Find<%= @model_name.pluralize %>Where(whereStr, whereParams...)
  -	if err != nil {
  -		return nil, err
  -	}
  -	if len(<%= param_name_plural %>) != 0 {
  -		_p.FirstId, _p.LastId = <%= param_name_plural %>[0].Id, <%= param_name_plural %>[len(<%= param_name_plural %>)-1].Id
  +	<%= var_pmn %>, err := Find<%= @model_name.pluralize %>Where(whereStr, whereParams...)
  +	if err != nil {
  +		return nil, err
  +	}
  +	if len(<%= var_pmn %>) != 0 {
  +		_p.FirstId, _p.LastId = <%= var_pmn %>[0].Id, <%= var_pmn %>[len(<%= var_pmn %>)-1].Id
   	}
   	_p.PageNum += 1
  -	return <%= param_name_plural %>, nil
  +	return <%= var_pmn %>, nil
   }
   
   // buildOrder is for <%= @model_name %>Page object to build SQL ORDER clause
  
positive.code: 							continue
  						}
  						for _, vv := range _<%= v[:class_name].underscore.pluralize %> {
  							for i, vvv := range  _<%= param_name_plural %> {
  								<%- if v[:foreign_key] -%>
  									if vv.<%= v[:foreign_key].to_s.camelize %> == vvv.Id {
  										vvv.<%= k %> = append(vvv.<%= k %>, vv)
  
negative.code: 		        FROM   <%= target_table %>
  		               INNER JOIN <%= through_table %>
  		                       ON <%= target_table %>.id = <%= through_table %>.<%= v[:class_name].underscore %>_id
  		        WHERE <%= through_table %>.<%= var_umn %>_id = ?`
  		_<%= k.underscore.pluralize %>, err := Find<%= v[:class_name].pluralize %>BySql(sql, id)
  	<%- elsif v[:as] -%>
  		where := `<%= v[:as] %>_type = "<%= @model_name %>" AND <%= v[:as] %>_id = ?`
  