Всего выполнено запросов: 28 шт. за 0.6552 сек. Развернуть Закрыть

# Запрос номер 1: SELECT @@sql_mode (0.0164 msec ) /var/www/www-root/data/www/orel.bazooka.store/mg-core/lib/db.php (line 47)

# Запрос номер 2: SET @@sql_mode='' (0.007 msec ) /var/www/www-root/data/www/orel.bazooka.store/mg-core/lib/db.php (line 57)

# Запрос номер 3: SET names utf8 (0.0079 msec ) /var/www/www-root/data/www/orel.bazooka.store/mg-core/lib/db.php (line 236)

# Запрос номер 4: SELECT `value` FROM `orel_setting` WHERE `option` = 'useDefaultSettings' (0.0118 msec ) /var/www/www-root/data/www/orel.bazooka.store/mg-core/lib/mg.php (line 0)

# Запрос номер 5: SELECT `option`, `value` FROM `orel_setting` (0.016 msec ) /var/www/www-root/data/www/orel.bazooka.store/mg-core/lib/mg.php (line 0)

Ошибка в SQL запросе: SELECT cat_id, count(DISTINCT p.id) as count FROM `orel_product` p LEFT JOIN `orel_product_variant` pv ON pv.`product_id`=p.`id` LEFT JOIN `orel_category` c ON c.`id`=p.`cat_id` WHERE p.`activity` = 1 AND c.`id` IS NOT NULL AND (SELECT SUM(ABS(count)) FROM orel_product_on_storage WHERE product_id = p.id) GROUP BY cat_id
MySQL server has gone away

/var/www/www-root/data/www/orel.bazooka.store/mg-core/lib/category.php (line 109)

/var/www/www-root/data/www/orel.bazooka.store/mg-core/lib/mg.php (line 0)

/var/www/www-root/data/www/orel.bazooka.store/mg-core/controllers/catalog.php (line 163)

/var/www/www-root/data/www/orel.bazooka.store/mg-core/lib/moguta.php (line 0)

/var/www/www-root/data/www/orel.bazooka.store/mg-core/mg-start.php (line 62)

/var/www/www-root/data/www/orel.bazooka.store/mg-core/index-start.php (line 126)

/var/www/www-root/data/www/orel.bazooka.store/index.php (line 4)