MYSQL QUERY ERROR

Query: SELECT pt.id, pt.name, pt.chpu FROM engio_products_ref pr JOIN engio_products_tree pt ON pr.ref = pt.id WHERE pr.product =
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 '' at line 1