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 'AND i.intStatus = 1' at line 1--SELECT i.*,c.intMainCategoryID,cm.fkNewsCategoryID FROM tblnews AS i LEFT JOIN tblnewscategorymap As cm ON cm.fkNewsID = i.pkNewsID LEFT JOIN tblnewscategories As c ON c.pkCategoryID = cm.fkNewsCategoryID WHERE i.pkNewsID = AND i.intStatus = 1