SELECT COUNT(DISTINCT p.product_id) AS total FROM ocmoto_product_to_category p2c LEFT JOIN ocmoto_product p ON (p2c.product_id = p.product_id) LEFT JOIN ocmoto_product_description pd ON (p.product_id = pd.product_id) WHERE p.status = '1' AND p.date_available <= NOW() AND p2c.category_id in (7213, 7221, 7222, 7223, 7224, 7225, 7226, 7228, 7229, 7230, 7231, 7232, 7233, 7234) AND p.price >= 0 AND p.price <= 25438.0000