An exception has been thrown ! Some informations:
SELECT p.id_product, c.bool_private, c.xiti, c.name_category, r.id_range, r.name_range
FROM product p INNER JOIN base b ON p.fkbase=b.id_base
INNER JOIN base_category bc ON b.id_base=bc.fkbase AND bc.bool_main=1
INNER JOIN category c ON bc.fkcategory=c.id_category
LEFT JOIN `range` r ON bc.fkrange=r.id_range
WHERE p.id_product= AND (p.product_status=1 OR p.product_status=3)
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 (p.product_status=1 OR p.product_status=3)' at line 6
Stack trace: