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 ItemDetails.LangID=1 AND ItemDetails.StatusID = 1 ORDER BY ItemsOr' at line 4
SELECT ItemDetail, DisplayDate, Items.ItemID, Abstract, Subtitle FROM ItemDetails INNER JOIN Items ON ItemDetails.ItemID = Items.ItemID INNER JOIN CategoryItems ON CategoryItems.ItemID = Items.ItemID WHERE CategoryItems.CategoryID = AND ItemDetails.LangID=1 AND ItemDetails.StatusID = 1 ORDER BY ItemsOrder ASC