Exception: Query error 1054: Unknown column 'shop_discounts.percent' in 'field list'. Query: SELECT SQL_CALC_FOUND_ROWS `shop_items`.*, IF (`shop_items`.`shop_currency_id` = '3', IF (shop_discounts.percent, price * (100 - shop_discounts.percent) * 0.058257 / 100, shop_items.price * 0.058257), IF (`shop_items`.`shop_currency_id` = '2', IF (shop_discounts.percent, price * (100 - shop_discounts.percent) * 11 / 100, shop_items.price * 11), IF (`shop_items`.`shop_currency_id` = '1', IF (shop_discounts.percent, price * (100 - shop_discounts.percent) * 0.002464 / 100, shop_items.price * 0.002464), IF (`shop_items`.`shop_currency_id` = '4', IF (shop_discounts.percent, price * (100 - shop_discounts.percent) * 1 / 100, shop_items.price * 1), price)))) AS `absolute_price` FROM `shop_items` LEFT OUTER JOIN `shop_item_discounts` ON `shop_items`.`id` = `shop_item_discounts`.`shop_item_id` LEFT OUTER JOIN `shop_discounts` ON `shop_item_discounts`.`shop_discount_id` = `shop_discounts`.`id` AND ( `shop_discounts`.`end_datetime` >= '2018-09-26 00:55:30' OR `shop_discounts`.`end_datetime` = '0000-00-00 00:00:00' AND `shop_discounts`.`start_datetime` <= '2018-09-26 00:55:30' ) WHERE `shop_items`.`shop_id` = '3' AND ( `shop_items`.`start_datetime` < '2018-09-26 00:55:30' OR `shop_items`.`start_datetime` = '0000-00-00 00:00:00' ) AND ( `shop_items`.`end_datetime` > '2018-09-26 00:55:30' OR `shop_items`.`end_datetime` = '0000-00-00 00:00:00' ) AND `shop_items`.`siteuser_group_id` IN (0, -1) AND `shop_items`.`shop_producer_id` = 87 AND `shop_items`.`active` = 1 AND ( `shop_items`.`shop_group_id` = 1907 AND `shop_items`.`modification_id` = 0 ) AND `shop_items`.`deleted` = 0 ORDER BY `absolute_price` ASC LIMIT 12 OFFSET 0
36 modules/core/exception.php
615 modules/core/database/mysql.php
80 modules/core/querybuilder/statement.php
513 modules/core/orm.php
494 modules/core/entity.php
890 modules/shop/controller/show.php
348 hostcmsfiles/lib/lib_6/lib_6.php
271 modules/lib/model.php
166 modules/core/page.php
418 templates/template60/template.htm
96 modules/template/model.php
166 modules/core/page.php
511 modules/core/command/controller/default.php
195 modules/core/router/route.php
239 index.php