MySQLi error in file /home/kenmante/domains/kenmantenne.info/public_html/php/listthemaobject.php, on line 608, on query:
SELECT DISTINCT role, name, titles, initials, prefix, postfix, christianname, kindofobject, id1, id2, id3, r.id as rijid, r.startdate as rinputdate, t.thesaurus, t.term FROM relations r, object o, objectterm t WHERE (ID1= and o.id = ID2 and t.id=ID2 and t.thesaurus='itemsoort' and t.term='') ORDER BY term, name, titles, prefix, postfix

Error: 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 o.id = ID2 and t.id=ID2 and t.thesaurus='itemsoort' and t.term='') ORDER BY ' at line 1