er is ingelogd no connection with MySQL :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 DESC' at line 4 in sql SELECT * FROM honden WHERE date_end = '2099-12-31' AND datum_overdracht = '0000-00-00' AND publiceren = 1 ORDER BY id DESC ORDER BY id DESC