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 (promotie * 10000) + (noutate * 1000) + (discount) DESC, nota DESC, 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 (promotie * 10000) + (noutate * 1000) + (discount) DESC, nota DESC, n' at line 1