You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ORDER BY taalid DESC' at line 21 SELECT naam, veldid, taalid, tekst, afbeelding FROM wp_accessoires WHERE prullenbak != 'j' AND status = 'Op internet' AND veldid = 4 AND taalid IN () ORDER BY taalid DESC