ActiveRecord::StatementInvalid in RpersonRelationsController#index

Mysql2::Error: Column 'id' in order clause is ambiguous

Extracted source (around line #14):
12
13
14
15
16
17
              
@rpeoplerel_count = RpersonRelation.count(:id)
@rpeoplerel_indiv = @rperson_relations.count(:id)
end

Rails.root: /var/www/public_romans

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"q"=>{"rrelation_code_or_rrelation_name_cont"=>"MotherOf"}}

Response

Headers:

None