/var/sites/c/calibre-furniture.co.uk/public_html/classItem.php: Line 1607 SELECT calibre_baseItem.baseItemID FROM calibre_itemCategoryXref, calibre_baseItem WHERE categoryID = AND calibre_itemCategoryXref.baseItemID = calibre_baseItem.baseItemID ORDER BY baseItemCodePt1, baseItemCodePt2, baseItemCode, baseItemName 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 calibre_itemCategoryXref.baseItemID = calibre_baseItem.baseItemID ORDER BY b' at line 1