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 '' at line 3SELECT atl_smoelenboekitems.nummer,atl_smoelenboekitems.naam,atl_smoelenboekitems.tussenvoegsel,atl_smoelenboekitems.achternaam FROM atl_nieuwsitem_smoelenboekitem, atl_smoelenboekitems WHERE atl_smoelenboekitems.nummer = atl_nieuwsitem_smoelenboekitem.smoelenboekitem AND nieuwsitem =