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 'WHERE attivo='1' AND id_comune IN(15,13,10,16,11,14,12,'') AND tipologia='' ORDE' at line 1