MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT b.brand_id, b.brand_name, b.brand_logo, COUNT(*) AS goods_num, IF(b.brand_logo > '', '1', '0') AS tag FROM `putian`.`ecs_brand`AS b, `putian`.`ecs_goods` AS g LEFT JOIN `putian`.`ecs_goods_cat` AS gc ON g.goods_id = gc.goods_id WHERE g.brand_id = b.brand_id AND (g.cat_id IN ('171','270','169','166','163','179','428','173','271','290','170','164','214','168','165','241','420','162') OR gc.cat_id IN ('171','270','169','166','163','179','428','173','271','290','170','164','214','168','165','241','420','162') ) AND b.is_show = 1 AND g.is_on_sale = 1 AND g.is_alone_sale = 1 AND g.is_delete = 0 GROUP BY b.brand_id HAVING goods_num > 0 ORDER BY b.sort_order, b.brand_id ASC ) [2] => Array ( [error] => Lost connection to MySQL server during query ) [3] => Array ( [errno] => 2013 ) ) MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT b.brand_id, b.brand_name, b.brand_logo, COUNT(*) AS goods_num, IF(b.brand_logo > '', '1', '0') AS tag FROM `putian`.`ecs_brand`AS b, `putian`.`ecs_goods` AS g LEFT JOIN `putian`.`ecs_goods_cat` AS gc ON g.goods_id = gc.goods_id WHERE g.brand_id = b.brand_id AND (g.cat_id IN ('171','270','169','166','163','179','428','173','271','290','170','164','214','168','165','241','420','162') OR gc.cat_id IN ('171','270','169','166','163','179','428','173','271','290','170','164','214','168','165','241','420','162') ) AND b.is_show = 1 AND g.is_on_sale = 1 AND g.is_alone_sale = 1 AND g.is_delete = 0 GROUP BY b.brand_id HAVING goods_num > 0 ORDER BY b.sort_order, b.brand_id ASC ) [2] => Array ( [error] => Lost connection to MySQL server during query ) [3] => Array ( [errno] => 2013 ) [4] => Array ( [message] => MySQL Query Error ) [5] => Array ( [sql] => UPDATE `putian`.`ecs_sessions` SET expiry = '1537690161', ip = '54.80.96.153', userid = '0', adminid = '0', user_name='0', user_rank='0', discount='1', email='0', data = 'a:3:{s:7:\"from_ad\";i:0;s:7:\"referer\";s:6:\"本站\";s:10:\"login_fail\";i:0;}' WHERE sesskey = '2f521625c8f6ce2759c68230caa2a045' LIMIT 1 ) [6] => Array ( [error] => MySQL server has gone away ) [7] => Array ( [errno] => 2006 ) )