Error: Table 'yanecouk_db.product' doesn't exist
Error No: 1146
SELECT COUNT(*) AS total FROM (SELECT p.product_id, p.price AS store_price, p.status AS product_status, p.date_available AS product_date_available FROM product p LEFT JOIN product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN product_description pd ON (p.product_id = pd.product_id) WHERE p.rrp<>0 AND ((p.rrp - p.price)/p.rrp)>0.4 AND p.status = '1' AND p.quantity > '0' AND p.date_available <= NOW() AND p2s.store_id = '6' AND pd.language_id = '1') AS pm