Originariamente inviato da margherite
Non funziona, manca un group by, almeno dice così:

#1140 - Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns is illegal if there is no GROUP BY clause
Vero me l'ero dimenticato !!!!


Quindi : aggiungi -> group by a.codice, a.nome