Warning: mysqli::query(): MySQL server has gone away in /home/lus/lus.com.ua/www/system/library/db/mysqli.php on line 18Warning: mysqli::query(): Error reading result set's header in /home/lus/lus.com.ua/www/system/library/db/mysqli.php on line 18
Fatal error: Uncaught exception 'Exception' with message 'Error: MySQL server has gone away<br />Error No: 2006<br />SELECT IF(t1.cprice>t1.price,1,-1)*(t1.cprice-t1.price),min(t1.rnd),t1.product_id,name,text,t2.attribute_id FROM (SELECT RAND() as rnd,pa2.product_id,pr.price,cpr.price as cprice,count(pa2.attribute_id) as quan FROM oc_product_attribute pa1 INNER JOIN oc_product_attribute pa2 ON (pa1.attribute_id = pa2.attribute_id and pa1.text = pa2.text and pa1.language_id = pa2.language_id) INNER JOIN oc_product pr ON (pa2.product_id = pr.product_id and pr.status = 1) LEFT JOIN oc_product cpr ON (pa1.product_id = cpr.product_id) INNER JOIN oc_product_to_category cat_source on(pa1.product_id = cat_source.product_id) INNER JOIN oc_product_to_category cat on(pa2.product_id = cat.product_id) WHERE 0 = 0 AND pa1.language_id = '3' AND (pa2.attribute_id = '38') GROUP BY pa2.product_id,pr.price,cpr.price having quan >= 1) t1 INNER JOIN oc_product_to_category cat on(t1.product_id = cat.product_id) LEFT JOIN oc_product_attribu in /home/lus/lus.com.ua/www/system/library/db/mysqli.php on line 40