Errormessage: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'fincasof_3web.cr.consultas_relaciones_3_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by Problem with Query: select * from consultas_relaciones_3 cr, consultas_datos_consultas_3 cdc where consultas_relaciones_3_id_categoria=5 and cr.consultas_relaciones_3_id_consulta=cdc.consultas_datos_consultas_3_id GROUP BY cr.consultas_relaciones_3_id_consulta limit 0,20