SELECT catID FROM categorie WHERE lower(substring(title,1,1)) = '\' AND catID IN (SELECT catID FROM categorie_producten) ORDER BY title
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 catID IN (SELECT catID FROM categorie_producten) ORDER BY title' at line 1