Can't execute query

SELECT parentId, catName, productFlag FROM categories WHERE id = 

MySQL Error: syntax error near '' at line 1

This script cannot continue, terminating.