# Запрос номер 1: SELECT @@sql_mode (0.0024 msec ) /var/www/www-root/data/www/kzn.bazooka.store/mg-core/lib/db.php (line 47)
# Запрос номер 2: SET @@sql_mode='' (0.0052 msec ) /var/www/www-root/data/www/kzn.bazooka.store/mg-core/lib/db.php (line 57)
# Запрос номер 3: SET names utf8 (0.0038 msec ) /var/www/www-root/data/www/kzn.bazooka.store/mg-core/lib/db.php (line 236)
# Запрос номер 4: SELECT `value` FROM `kzn_setting` WHERE `option` = 'useDefaultSettings' (0.0038 msec ) /var/www/www-root/data/www/kzn.bazooka.store/mg-core/lib/mg.php (line 0)
# Запрос номер 5: SELECT `option`, `value` FROM `kzn_setting` (0.004 msec ) /var/www/www-root/data/www/kzn.bazooka.store/mg-core/lib/mg.php (line 0)
Ошибка в SQL запросе: SELECT cat_id, count(DISTINCT p.id) as count FROM `kzn_product` p LEFT JOIN `kzn_product_variant` pv ON pv.`product_id`=p.`id` LEFT JOIN `kzn_category` c ON c.`id`=p.`cat_id` WHERE p.`activity` = 1 AND c.`id` IS NOT NULL AND (SELECT SUM(ABS(count)) FROM kzn_product_on_storage WHERE product_id = p.id) GROUP BY cat_id/var/www/www-root/data/www/kzn.bazooka.store/mg-core/lib/category.php (line 109)
/var/www/www-root/data/www/kzn.bazooka.store/mg-core/lib/mg.php (line 0)
/var/www/www-root/data/www/kzn.bazooka.store/mg-core/controllers/catalog.php (line 163)
/var/www/www-root/data/www/kzn.bazooka.store/mg-core/lib/moguta.php (line 0)
/var/www/www-root/data/www/kzn.bazooka.store/mg-core/mg-start.php (line 0)
/var/www/www-root/data/www/kzn.bazooka.store/mg-core/index-start.php (line 126)
/var/www/www-root/data/www/kzn.bazooka.store/index.php (line 4)