In aggregated query without GROUP BY, expression #23 of SELECT list contains nonaggregated column 'modelsho_db.cm.id'; this is incompatible with sql_mode=only_full_group_by