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 'AND ps.shop_id = p.shop_id AND p.products_status = 1 AND p.products_delete = 0' at line 1
select count(*) as total from usr_hdigt3_1.products p,usr_hdigt3_1.products_shops ps WHERE p.shop_id = AND ps.shop_id = p.shop_id AND p.products_status = 1 AND p.products_delete = 0