Notice: Error: Lost connection to MySQL server during query
Error No: 2013
SELECT cat_gol.category_id as gol_cat, cat_gol_desc.name as name,(SELECT COUNT(p0.product_id) FROM product p0 LEFT JOIN product_to_category ptc ON(p0.product_id=ptc.product_id) WHERE ptc.category_id=cat_gol.category_id) total_product0, sub_c1.category_id as subc1_cat, sub_c1_desc.name as name1,(SELECT COUNT(p1.product_id) FROM product p1 LEFT JOIN product_to_category ptc1 ON(p1.product_id=ptc1.product_id) WHERE ptc1.category_id=sub_c1.category_id) total_product1, sub_c2.category_id as subc2_cat, sub_c2_desc.name as name2,(SELECT COUNT(p2.product_id) FROM product p2 LEFT JOIN product_to_category ptc2 ON(p2.product_id=ptc2.product_id) WHERE ptc2.category_id=sub_c2.category_id) total_product2, sub_c3.category_id as subc3_cat, sub_c3_desc.name as name3,(SELECT COUNT(p3.product_id) FROM product p3 LEFT JOIN product_to_category ptc3 ON(p3.product_id=ptc3.product_id) WHERE ptc3.category_id=sub_c3.c in /var/www/svpostua/data/www/svpost.com.ua/system/database/mysql.php on line 49