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 id=3 DESC,id=2 DESC,id=4 DESC,id=5 DESC,id=1 DESC' at line 1SELECT * FROM languages WHERE id IN () ORDER BY id=3 DESC,id=2 DESC,id=4 DESC,id=5 DESC,id=1 DESC