Error on query SELECT carti.id, carti.nume, carti.poza_mica, carti.poza_mare, carti.pret, carti.discount, carti.stoc, carti.promotie, carti.noutate FROM carti WHERE carti.id IN () ORDER BY carti.nota DESC, carti.nume ASC . Err desc: 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 ') ORDER BY carti.nota DESC, carti.nume ASC' at line 1