Error: Table '10w40.product_related' doesn't exist
Error No: 1146
SELECT * FROM product_related pr LEFT JOIN product p ON (pr.related_id = p.product_id) LEFT JOIN product_to_store p2s ON (p.product_id = p2s.product_id) WHERE pr.product_id = '365865' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0'