An Error Was Encountered
Error Number: 1064
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 'OR item.item_cat1 = OR item.item_cat2 = ) AND item.item_status = 1 AND item_dat' at line 9
SELECT count(*) as items_count FROM item JOIN item_cat AS item_parent ON item.item_cat_id = item_parent.itemcat_id JOIN item_cat AS item_grand ON item_parent.itemcat_parent_id = item_grand.itemcat_id LEFT JOIN item_bid ON `item`.`item_id` = `item_bid`.`ib_item_id` WHERE (CONCAT(item_parent.itemcat_url, '_', item_parent.itemcat_id) = 'my_account' AND CONCAT(item_grand.itemcat_url, '_', item_grand.itemcat_id) = 'shorts_350' OR item_grand.itemcat_id = OR item.item_cat1 = OR item.item_cat2 = ) AND item.item_status = 1 AND item_date_end > 1283930370