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 ')' at line 1select *, prodotti.id as id_item from prodotti inner join prodotti_lingue on prodotti.id=prodotti_lingue.id_prodotti where id_lingua=1 and abilitata='1' and visibile='1' and abilitata=1 AND visibile=1 AND id_prodotti IN (8886, 12130, 12108, 11527, 11473, 11400, 10071, 1812, 18071808, 1809, 1810, 1811,)