Error: MySQL server has gone away
Error No: 2006
SELECT p.product_id, p.model, p.tax_class_id, p.price, pd.name AS name, p.image, m.name AS manufacturer, ss.name AS stock, (SELECT AVG(r.rating) FROM review r WHERE p.product_id = r.product_id GROUP BY r.product_id) AS rating,
(SELECT price FROM mod_product_price mpp WHERE p.product_id = mpp.product_id AND mpp.customer_id = '0') AS mprice
FROM product p
LEFT JOIN product_description pd ON (p.product_id = pd.product_id)
LEFT JOIN manufacturer m ON (p.manufacturer_id = m.manufacturer_id)
LEFT JOIN stock_status ss ON (p.stock_status_id = ss.stock_status_id)
LEFT JOIN product_to_category p2c ON (p.product_id = p2c.product_id)
LEFT JOIN mod_product_additional pa ON (p.product_id = pa.product_id)
WHERE p.status = '1' AND p.date_available <= NOW() AND pd.language_id = '1' AND ss.language_id = '1' AND p2c.category_id = '39' AND pa.product_type_id='3' ORDER BY p.sort_order ASC LIMIT 0,9