Errormessage: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'fincasof_3web.cr.consultas_relaciones_4_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_4 cr, consultas_datos_consultas_4 cdc where consultas_relaciones_4_id_categoria=8 and cr.consultas_relaciones_4_id_consulta=cdc.consultas_datos_consultas_4_id GROUP BY cr.consultas_relaciones_4_id_consulta