# Запрос номер 1: SELECT @@sql_mode (0.0003 sec ) /var/www/www-root/data/www/vyazma-gas.ru/mg-core/lib/db.php (line 49)
# Запрос номер 2: SET @@sql_mode='ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' (0.0002 sec ) /var/www/www-root/data/www/vyazma-gas.ru/mg-core/lib/db.php (line 59)
# Запрос номер 3: SET names utf8 (0.0001 sec ) /var/www/www-root/data/www/vyazma-gas.ru/mg-core/lib/db.php (line 243)
# Запрос номер 4: SELECT `value` FROM `mg_setting` WHERE `option` = 'useDefaultSettings' (0.0006 sec ) /var/www/www-root/data/www/vyazma-gas.ru/mg-core/lib/mg.php (line 0)
# Запрос номер 5: SELECT `option`, `value` FROM `mg_setting` (0.0015 sec ) /var/www/www-root/data/www/vyazma-gas.ru/mg-core/lib/mg.php (line 0)
Ошибка в SQL запросе: SELECT p.*, p.`id` AS id, CONCAT(c.`parent_url`, c.`url`) AS category_url, IF(c.`unit`, c.`unit`, "шт.") AS category_unit, p.`unit` AS product_unit, c.`weight_unit` AS category_weight_unit, p.`weight_unit` AS product_weight_unit, p.`url` AS product_url, pv.`product_id` AS variant_exist, c.`rate`, (p.`price_course` + p.`price_course` * (IFNULL(c.`rate`, 0))) as price_course, p.`storage_count` AS count_sort FROM `mg_product` AS p LEFT JOIN `mg_product_variant` AS pv ON pv.`product_id` = p.`id` LEFT JOIN `mg_category` AS c ON c.`id` = p.`cat_id` WHERE p.`id` IN ('1692','1693','2460','1257','2461','1333','1334','1260','2462','1390','1380','1337','1381','1383','1388','1480','1389','1469','2363','1987','1805','1803','2225','1806') GROUP BY p.`id` ORDER BY p.`price_course` + p.`price_course` * IFNULL(c.`rate`, 0) ASC, p.`id`/var/www/www-root/data/www/vyazma-gas.ru/mg-core/models/catalog.php (line 1052)
/var/www/www-root/data/www/vyazma-gas.ru/mg-core/controllers/group.php (line 54)
/var/www/www-root/data/www/vyazma-gas.ru/mg-core/lib/moguta.php (line 0)
/var/www/www-root/data/www/vyazma-gas.ru/mg-core/mg-start.php (line 64)
/var/www/www-root/data/www/vyazma-gas.ru/mg-core/index-start.php (line 127)
/var/www/www-root/data/www/vyazma-gas.ru/index.php (line 6)