Fatal error: Uncaught exception 'ErrorException' with message 'Error: MySQL server has gone away<br />Error No: 2006<br />CREATE TEMPORARY TABLE oc_bf_found_results (PRIMARY KEY (`product_id`)) SELECT p.product_id, p.price, MIN(pd2.price) AS discount, MIN(ps.price) AS special, AVG(rating) AS total, 0 AS fixed_tax, 0 AS percent_tax FROM ( SELECT p.* FROM `oc_product` AS p INNER JOIN `oc_product_to_category` AS p2c ON (p.product_id = p2c.product_id) WHERE p2c.category_id = '4197') AS p INNER JOIN `oc_product_to_store` AS p2s ON (p.product_id = p2s.product_id) LEFT JOIN `oc_product_discount` AS pd2 ON (pd2.product_id = p.product_id
AND pd2.quantity = '1'
AND (pd2.date_start = '0000-00-00' OR pd2.date_start < NOW())
AND (pd2.date_end = '0000-00-00' OR pd2.date_end > NOW())
AND pd2.customer_group_id = '1') LEFT JOIN `oc_product_special` AS ps ON (ps.product_id = p.product_id
AND (ps.date_end = '0000-00-00' in /home/discountsewing/public_html/system/database/mysqli.php on line 41