Errore query SELECT * FROM hpp_fotografie AS a LEFT JOIN hpp_fotografie_txt AS t ON a.idFoto = t.idFoto WHERE a.cancellato = 0 AND a.idAssociato = 30 AND a.tipologia = AND t.idLingua = 2 ORDER BY a.ordine ASC -> 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 'AND t.idLingua = 2 ORDER BY a.ordine ASC' at line 1