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 9 in sql SELECT honden.* , as vrijwilligers_id, FROM honden, vrijwilligers WHERE honden.verblijfplaats = AND honden.date_end = '2099-12-31' AND datum_overdracht = '0000-00-00' AND beschikbaar='V' AND publiceren = 1 ORDER BY DESC ORDER BY id DESC