Mysql failure:
-----------------------------
Query:
SELECT h.id as id
FROM hardware AS h
JOIN producten AS p ON h.id = p.hardware_id
WHERE platform2_id = 17 and categorie_id =
AND actief = 1 AND p.levertijd !='niet meer leverbaar'
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 'AND actief = 1 AND p.levertijd !='niet meer leverbaar'' at line 5