Ongelma. 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 '' at line 4
SELECT P2C.category_id FROM product_to_category P2C JOIN product P ON P2C.product_id = P.product_id WHERE P2C.product_id =