Fatal error: SafeMySQL: 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 ') AND category=2 AND `show`=1 AND status NOT IN(2,9) ORDER BY CASE WHEN' at line 2. Full query: [ SELECT * FROM page WHERE id IN() AND category=2 AND `show`=1 AND status NOT IN(2,9) ORDER BY CASE WHEN price_usd < 0.01 THEN 1 else 0 END, price_usd ASC, title ASC]. Error initiated in /var/www/mshop.by/t/page-catalog.php on line 28, thrown in /var/www/mshop.by/i/classes/SafeMySQL.class.php on line 601