MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT IF(g.model_price < 1, g.shop_price, IF(g.model_price < 2, wg.warehouse_price, wag.region_price)) AS org_price, g.model_price, IF(g.model_price < 1, g.goods_number, IF(g.model_price < 2, wg.region_number, wag.region_number)) AS goods_number, g.model_price, g.model_attr, (SELECT IF((iw.goods_number + iw.user_number + iw.goods_comment_number + iw.merchants_comment_number + iw.user_attention_number) > iw.return_number, (iw.goods_number + iw.user_number + iw.goods_comment_number + iw.merchants_comment_number + iw.user_attention_number - iw.return_number), 0) AS goods_sort FROM `ceshi_zazhidang`.`dsc_intelligent_weight` AS iw WHERE iw.goods_id = g.goods_id LIMIT 1) AS goods_sort, g.sort_order, g.goods_id,g.is_shipping, g.user_id, g.goods_name, g.goods_name_style, g.comments_number,g.goods_qishu,g.goods_lx,g.sales_volume,g.sales_volume_base,g.market_price, g.is_new, g.is_best, g.is_hot, g.store_new, g.store_best, g.store_hot, IFNULL(IFNULL(mp.user_price, IF(g.model_price < 1, g.shop_price, IF(g.model_price < 2, wg.warehouse_price, wag.region_price)) * '1'), g.shop_price * '1') AS shop_price, IFNULL(IF(g.model_price < 1, g.promote_price, IF(g.model_price < 2, wg.warehouse_promote_price, wag.region_promote_price)), g.promote_price) AS promote_price, g.goods_type, g.promote_start_date, g.promote_end_date, g.is_promote, g.goods_brief, g.goods_thumb , g.goods_img, msi.self_run, g.product_price, g.product_promote_price FROM `ceshi_zazhidang`.`dsc_goods` AS g LEFT JOIN `ceshi_zazhidang`.`dsc_warehouse_goods` AS wg ON g.goods_id = wg.goods_id AND wg.region_id = '3' LEFT JOIN `ceshi_zazhidang`.`dsc_warehouse_area_goods` AS wag ON g.goods_id = wag.goods_id AND wag.region_id = '30' LEFT JOIN `ceshi_zazhidang`.`dsc_merchants_shop_information` AS msi ON msi.user_id = g.user_id LEFT JOIN `ceshi_zazhidang`.`dsc_member_price` AS mp ON mp.goods_id = g.goods_id AND mp.user_rank = '0' WHERE g.is_on_sale = 1 AND g.is_alone_sale = 1 AND g.is_show = 1 AND g.is_delete = 0 AND (g.cat_id IN ('1590') OR g.goods_id IN ('') ) AND g.review_status > 2 group by g.goods_id ORDER BY IF(goods_sort > 0, goods_sort + g.sort_order, g.sort_order) ASC, g.goods_id ASC LIMIT 20 ) [2] => Array ( [error] => MySQL server has gone away ) [3] => Array ( [errno] => 2006 ) ) MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT IF(g.model_price < 1, g.shop_price, IF(g.model_price < 2, wg.warehouse_price, wag.region_price)) AS org_price, g.model_price, IF(g.model_price < 1, g.goods_number, IF(g.model_price < 2, wg.region_number, wag.region_number)) AS goods_number, g.model_price, g.model_attr, (SELECT IF((iw.goods_number + iw.user_number + iw.goods_comment_number + iw.merchants_comment_number + iw.user_attention_number) > iw.return_number, (iw.goods_number + iw.user_number + iw.goods_comment_number + iw.merchants_comment_number + iw.user_attention_number - iw.return_number), 0) AS goods_sort FROM `ceshi_zazhidang`.`dsc_intelligent_weight` AS iw WHERE iw.goods_id = g.goods_id LIMIT 1) AS goods_sort, g.sort_order, g.goods_id,g.is_shipping, g.user_id, g.goods_name, g.goods_name_style, g.comments_number,g.goods_qishu,g.goods_lx,g.sales_volume,g.sales_volume_base,g.market_price, g.is_new, g.is_best, g.is_hot, g.store_new, g.store_best, g.store_hot, IFNULL(IFNULL(mp.user_price, IF(g.model_price < 1, g.shop_price, IF(g.model_price < 2, wg.warehouse_price, wag.region_price)) * '1'), g.shop_price * '1') AS shop_price, IFNULL(IF(g.model_price < 1, g.promote_price, IF(g.model_price < 2, wg.warehouse_promote_price, wag.region_promote_price)), g.promote_price) AS promote_price, g.goods_type, g.promote_start_date, g.promote_end_date, g.is_promote, g.goods_brief, g.goods_thumb , g.goods_img, msi.self_run, g.product_price, g.product_promote_price FROM `ceshi_zazhidang`.`dsc_goods` AS g LEFT JOIN `ceshi_zazhidang`.`dsc_warehouse_goods` AS wg ON g.goods_id = wg.goods_id AND wg.region_id = '3' LEFT JOIN `ceshi_zazhidang`.`dsc_warehouse_area_goods` AS wag ON g.goods_id = wag.goods_id AND wag.region_id = '30' LEFT JOIN `ceshi_zazhidang`.`dsc_merchants_shop_information` AS msi ON msi.user_id = g.user_id LEFT JOIN `ceshi_zazhidang`.`dsc_member_price` AS mp ON mp.goods_id = g.goods_id AND mp.user_rank = '0' WHERE g.is_on_sale = 1 AND g.is_alone_sale = 1 AND g.is_show = 1 AND g.is_delete = 0 AND (g.cat_id IN ('1590') OR g.goods_id IN ('') ) AND g.review_status > 2 group by g.goods_id ORDER BY IF(goods_sort > 0, goods_sort + g.sort_order, g.sort_order) ASC, g.goods_id ASC LIMIT 20 ) [2] => Array ( [error] => MySQL server has gone away ) [3] => Array ( [errno] => 2006 ) [4] => Array ( [message] => MySQL Query Error ) [5] => Array ( [sql] => UPDATE `ceshi_zazhidang`.`dsc_sessions` SET expiry = '1708804848', ip = '18.207.129.175', 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 = 'b62405946a945860055cb173c0bb4407' LIMIT 1 ) [6] => Array ( [error] => MySQL server has gone away ) [7] => Array ( [errno] => 2006 ) )