Error: MySQL server has gone away
Error No: 2006
SELECT *, AS name, p.image, AS manufacturer, AS stock, (SELECT AVG(r.rating) FROM store_review r WHERE p.product_id = r.product_id GROUP BY r.product_id) AS rating FROM store_product p LEFT JOIN store_product_description pd ON (p.product_id = pd.product_id) LEFT JOIN store_product_tags pt ON (p.product_id = pt.product_id) LEFT JOIN store_product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN store_manufacturer m ON (p.manufacturer_id = m.manufacturer_id) LEFT JOIN store_stock_status ss ON (p.stock_status_id = ss.stock_status_id) WHERE pd.language_id = '1' AND p2s.store_id = '0' AND ss.language_id = '1' AND pt.language_id = '1' AND (LCASE(pt.tag) = 'bumgenius' OR LCASE(pt.tag) = 'bumgenius') AND p.status = '1' AND p.date_available <= NOW() GROUP BY p.product_id ORDER BY p.sort_order ASC LIMIT 0,20