ERROR: 42000:1064: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 'sfeerbeeld'' at line 1 SELECT PL_FOTO,PL_ACSD_FR AS INFO FROM tbl_photo_lijst WHERE PL_FOTO IN (') AND PL_ACSD_FR <> 'sfeerbeeld'