In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column 'ventan_data.mod_visitas.fecha'; this is incompatible with sql_mode=only_full_group_by