# Запрос номер 1: SELECT @@sql_mode (0.0057 msec ) /var/www/www-root/data/www/msk.bazooka.store/mg-core/lib/db.php (line 47)
# Запрос номер 2: SET @@sql_mode='' (0.0102 msec ) /var/www/www-root/data/www/msk.bazooka.store/mg-core/lib/db.php (line 57)
# Запрос номер 3: SET names utf8 (0.012 msec ) /var/www/www-root/data/www/msk.bazooka.store/mg-core/lib/db.php (line 236)
# Запрос номер 4: SELECT `value` FROM `msk_setting` WHERE `option` = 'useDefaultSettings' (0.0118 msec ) /var/www/www-root/data/www/msk.bazooka.store/mg-core/lib/mg.php (line 0)
# Запрос номер 5: SELECT `option`, `value` FROM `msk_setting` (0.0161 msec ) /var/www/www-root/data/www/msk.bazooka.store/mg-core/lib/mg.php (line 0)
Ошибка в SQL запросе: SELECT count(distinct p.id) AS count FROM msk_product p LEFT JOIN msk_category c ON c.id = p.cat_id LEFT JOIN msk_product_variant pv ON p.id = pv.product_id LEFT JOIN ( SELECT pv.product_id, SUM(IF(pv.count <0, 1000000, pv.count)) AS varcount FROM msk_product_variant AS pv GROUP BY pv.product_id ) AS temp ON p.id = temp.product_id WHERE ((p.cat_id IN ('2879','3200','844','2532','3260','6015') or FIND_IN_SET(6015,p.`inside_cat`))) AND p.activity = 1 AND ((SELECT SUM(ABS(count)) FROM msk_product_on_storage WHERE product_id = p.id) != 0)/var/www/www-root/data/www/msk.bazooka.store/mg-core/models/catalog.php (line 225)
/var/www/www-root/data/www/msk.bazooka.store/mg-core/controllers/catalog.php (line 176)
/var/www/www-root/data/www/msk.bazooka.store/mg-core/lib/moguta.php (line 0)
/var/www/www-root/data/www/msk.bazooka.store/mg-core/mg-start.php (line 62)
/var/www/www-root/data/www/msk.bazooka.store/mg-core/index-start.php (line 126)
/var/www/www-root/data/www/msk.bazooka.store/index.php (line 4)