MySQLi error in file /home/kenmante/domains/kenmantenne.info/public_html/php/timeline/timeline16themaobject.php, on line 631, 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