# Запрос номер 1: SELECT @@sql_mode (0.02 msec ) /var/www/www-root/data/www/usinsk.bazooka.store/mg-core/lib/db.php (line 47)
# Запрос номер 2: SET @@sql_mode='' (0.0118 msec ) /var/www/www-root/data/www/usinsk.bazooka.store/mg-core/lib/db.php (line 57)
# Запрос номер 3: SET names utf8 (0.0119 msec ) /var/www/www-root/data/www/usinsk.bazooka.store/mg-core/lib/db.php (line 236)
# Запрос номер 4: SELECT `value` FROM `usinsk_setting` WHERE `option` = 'useDefaultSettings' (0.0115 msec ) /var/www/www-root/data/www/usinsk.bazooka.store/mg-core/lib/mg.php (line 0)
# Запрос номер 5: SELECT `option`, `value` FROM `usinsk_setting` (0.0072 msec ) /var/www/www-root/data/www/usinsk.bazooka.store/mg-core/lib/mg.php (line 0)
Ошибка в SQL запросе: SELECT CEILING(MAX((p.price_course + p.price_course * (IFNULL(c.rate,0))))) as `max_price`, FLOOR(MIN((p.price_course + p.price_course * (IFNULL(c.rate,0))))) as min_price FROM `usinsk_product` as p LEFT JOIN tmp_cat as c ON c.id = p.cat_id WHERE p.activity = 1 AND ((SELECT SUM(ABS(count)) FROM usinsk_product_on_storage WHERE product_id = p.id) > 0) AND (p.cat_id IN ('1389') or FIND_IN_SET(1389,p.`inside_cat`))/var/www/www-root/data/www/usinsk.bazooka.store/mg-core/models/catalog.php (line 1634)
/var/www/www-root/data/www/usinsk.bazooka.store/mg-core/models/catalog.php (line 89)
/var/www/www-root/data/www/usinsk.bazooka.store/mg-core/controllers/catalog.php (line 176)
/var/www/www-root/data/www/usinsk.bazooka.store/mg-core/lib/moguta.php (line 0)
/var/www/www-root/data/www/usinsk.bazooka.store/mg-core/mg-start.php (line 62)
/var/www/www-root/data/www/usinsk.bazooka.store/mg-core/index-start.php (line 126)
/var/www/www-root/data/www/usinsk.bazooka.store/index.php (line 4)