Errore elenco record :In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column 'Sql1718997_1.lastre.IDlastra'; this is incompatible with sql_mode=only_full_group_bySELECT *, COUNT(IDmateriale) AS COUNTER FROM lastre WHERE IDmateriale = '18' ORDER BY Ordine LIMIT 1;