SELECT `organisations`.`id` AS t0_r0,
`organisations`.`name` AS t0_r1,
`dongles`.`id` AS t1_r0, This should be an aggregate!
`dongles`.`name` AS t1_r1,
`dongles`.`organisation_id` AS t1_r4
FROM `organisations`
LEFT OUTER JOIN `dongles`
ON `dongles`.`organisation_id` = `organisations`.`id`
GROUP BY organisations.id
ORDER BY count(dongles.id) DESC
(선택 의지하지 않고이 작업을 수행 할 수있는 적절한 방법이 있나요)과의 전체 목록을 하드 코딩 : 쿼리를 보면
는ActiveRecord::StatementInvalid: Mysql2::Error: Expression #8 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'portal_development.dongles.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by: [query here]
, 이유 을 쉽게 알 수있다 열?