Originariamente inviato da nicola75ss
Scusa,nel link che hai segnalato dice chiaramente di usare having al posto di where. Non puoi usare where quando usi funzioni di aggregazione come sum.
Ho provato e l'errore è cambiato, ora da
"#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY ( Totale ) ORDER BY SUM( valore ) DESC LIMIT 0, 30'"

altre idee?
:master: :master: