SELECT * FROM categories WHERE parent = AND client_id=14012 AND online='Y' ORDER BY displayorder ASC

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 client_id=14012 AND online='Y' ORDER BY displayorder ASC' at line 1