SELECT * FROM `publicaties` WHERE `status` = 'online' AND `online_van` <= now() AND `online_tot` >= now() AND `lang` = 'nl' AND `medium` IN() ORDER BY `order_nr` 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 `order_nr`' at line 7