Invalid query A: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND lingua_id = "1" ORDER BY classe_id' at line 1: SELECT elemento_id as id, nome as nome, descrizione as descrizione, caratteristiche as caratteristiche FROM traduzioni WHERE classe_id = 5 AND elemento_id = AND lingua_id = "1" ORDER BY classe_id