MySQL returned error




Error Description :
Error No : 1064
Description : 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

SQL Query
SELECT project_master.*, categories.id AS categories_id, categories.name AS categories_name, categories.seo_url AS categories_seo_url, categories.admin_user_id AS categories_admin_user_id, categories.status AS categories_status, categories.created AS categories_created, categories.updated AS categories_updated, state.id AS state_id, state.name AS state_name, state.status AS state_status, city.id AS city_id, city.state_id AS city_state_id, city.name AS city_name, city.rainfall AS city_rainfall, city.status AS city_status FROM project_master LEFT JOIN categories AS categories ON(categories.id=project_master.category_id) LEFT JOIN state AS state ON(state.id=project_master.state) LEFT JOIN city AS city ON(city.id=project_master.city) WHERE project_master.id!=0 AND (project_master.status = 'Active' AND category_id = )