Warning: mysqli::query(): MySQL server has gone away in /home/robotindustrial/www/vqmod/vqcache/vq2-system_library_db_mysqli.php on line 194Warning: mysqli::query(): Error reading result set's header in /home/robotindustrial/www/vqmod/vqcache/vq2-system_library_db_mysqli.php on line 194
Fatal error: Uncaught Exception: Error: MySQL server has gone away<br />Error No: 2006<br />
SELECT
MAX(c.category_id) category_id,
MAX(cd.name) value,
MAX(c.image) image,
COUNT(*) total
,get_category_tree(c.category_id, 1) AS `name`
FROM `oc_category` c
LEFT JOIN `oc_category_description` cd ON (c.category_id = cd.category_id)
LEFT JOIN `oc_category_to_store` c2s ON (c.category_id = c2s.category_id)
LEFT JOIN `oc_product_to_category`p2c ON (c.category_id = p2c.category_id)
LEFT JOIN `oc_product` p ON (p.product_id = p2c.product_id)
LEFT JOIN `oc_product_description` pd ON (p.product_id = pd.product_id)
LEFT JOIN `oc_product_to_store` p2s ON (p.product_id = p2s.product_id)
WHERE
ifnull(p2s.status, p.status) = '1'
AND ifnull(p2s.date_available, p.date_available) <= NOW()
AND p2s.store_id = '0'
AND pd.language_id = '1'
AND cd.language_id = '1'
AND c2s.store_id = '0'
AND c.status = '1'
GROUP BY c.category_id
in /home/robotindustrial/www/vqmod/vqcache/vq2-system_library_db_mysqli.php on line 218