SELECT DISTINCT c.categ_ned as categorie, c.id as categid, p.* , pr.prijsklasse as prijs FROM producten_prijsklasses prpr, prijsklasses pr, producten_categorieen pc, categorieen c, producten p WHERE ( c.id = OR c.parent_id = ) AND p.benaming_ned!= '' AND pc.product_id = p.id AND c.id = pc.categ_id AND prpr.product_id = p.id AND pr.id = prpr.prijs_id
MySQL 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 'OR c.parent_id = ) AND p.benaming_ned!= '' AND pc.product_id = p.id AND c.i' at line 11
This script cannot continue, terminating.