Time: 18.01.2022 13:57:11 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.`day20`) as `sum`, (t4.`day20`+t4.`day19`+t4.`day18`+t4.`day17`+t4.`day16`+t4.`day15`+t4.`day14`+t4.`day13`+t4.`day12`+t4.`day11`+t4.`day10`+t4.`day9`+t4.`day8`+t4.`day7`+t4.`day6`+t4.`day5`+t4.`day4`+t4.`day3`+t4.`day2`+t4.`day1`) as `popsum`, (t5.`day20`+t5.`day19`+t5.`day18`+t5.`day17`+t5.`day16`+t5.`day15`+t5.`day14`+t5.`day13`+t5.`day12`+t5.`day11`+t5.`day10`+t5.`day9`+t5.`day8`+t5.`day7`+t5.`day6`+t5.`day5`+t5.`day4`+t5.`day3`+t5.`day2`+t5.`day1`) 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 (1204) 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