Time: 04.12.2021 14:23:07 Message: MySQL server has gone away Query: SELECT t1.product_group AS ARRAY_KEY_1, t1.product_id AS ARRAY_KEY_2, t1.product_id, t1.name, t1.altname, t1.brend_id, t1.product_color, t1.product_size, t1.vendor_article, t1.product_exists, t1.fields_input, t1.product_desc, t1.product_nov2, t1.product_sale, t1.in_sale, t1.product_gift, t1.catalog_id, t1.import_type, t1.price, t1.price_old, t1.orig_price, t1.product_added, t1.product_last_modified as lm, t1.product_position, t1.product_visible, t1.`archived`, (t4.`day11`) as `sum`, (t4.`day11`+t4.`day10`+t4.`day9`+t4.`day8`+t4.`day7`+t4.`day6`+t4.`day5`+t4.`day4`+t4.`day3`+t4.`day2`+t4.`day1`+t4.`day30`+t4.`day29`+t4.`day28`+t4.`day27`+t4.`day26`+t4.`day25`+t4.`day24`+t4.`day23`+t4.`day22`) as `popsum`, (t5.`day11`+t5.`day10`+t5.`day9`+t5.`day8`+t5.`day7`+t5.`day6`+t5.`day5`+t5.`day4`+t5.`day3`+t5.`day2`+t5.`day1`+t5.`day30`+t5.`day29`+t5.`day28`+t5.`day27`+t5.`day26`+t5.`day25`+t5.`day24`+t5.`day23`+t5.`day22`) as `summbuy`, t2.`category_id` as cat_id FROM bm_products t1 JOIN bm_products_category t2 ON t1.`product_id` = t2.`group_id` LEFT JOIN bm_product_views t4 ON t4.product_id = t1.product_id LEFT JOIN bm_product_buy t5 ON t5.product_id = t1.product_id WHERE t2.`category_id` IN (417) AND t1.product_visible = '2' ORDER BY t2.`position` ASC, t1.`product_position2` ASC Context: /var/www/bymobile.ru/public/_admincp/_classes/_functions.php line 1228