Exception: Query error HY000: SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query. Query: SELECT
`shop_items`.`id`, `shop_items`.`shop_group_id`, `shop_items`.`modification_id`, `shop_items`.`shop_producer_id`, `shop_items`.`shop_seller_id`, `shop_items`.`weight`, `shop_items`.`length`, `shop_items`.`width`, `shop_items`.`height`, IF (shop_items.modification_id = 0 AND shop_items.price = 0 AND mods.id IS NOT NULL, `mods`.`abs_price`, (`shop_items`.`price` * `shop_currencies`.`exchange_rate`) - IF(`shop_discounts`.`id` IS NOT NULL, IF(`shop_discounts`.`type` = 0, (`shop_items`.`price` * `shop_currencies`.`exchange_rate` * `shop_discounts`.`value` / 100), `shop_discounts`.`value`), 0) + IF(`shop_taxes`.`id` IS NOT NULL AND `shop_taxes`.`tax_is_included` = 0, (`shop_taxes`.`rate` / 100 * (`shop_items`.`price` * `shop_currencies`.`exchange_rate`)), 0)) AS `absolute_price`
FROM `shop_items`
LEFT OUTER JOIN (SELECT
`tmp`.`id`, ((`tmp`.`price` * `tmp_currencies`.`exchange_rate`) - IF(`tmp_discounts`.`id` IS NOT NULL, IF(`tmp_discounts`.`type` = 0, (`tmp`.`price` * `tmp_currencies`.`exchange_rate` * `tmp_discounts`.`value` / 100), `tmp_discounts`.`value`), 0) + IF(`tmp_taxes`.`id` IS NOT NULL AND `tmp_taxes`.`tax_is_included` = 0, (`tmp_taxes`.`rate` / 100 * (`tmp`.`price` * `tmp_currencies`.`exchange_rate`)), 0)) AS `abs_price`, `tmp`.`modification_id`
FROM `shop_items` AS `tmp`
LEFT OUTER JOIN `shop_taxes` AS `tmp_taxes` ON `tmp_taxes`.`id` = `tmp`.`shop_tax_id`
LEFT OUTER JOIN `shop_currencies` AS `tmp_currencies` ON `tmp_currencies`.`id` = `tmp`.`shop_currency_id`
LEFT OUTER JOIN `shop_item_discounts` AS `tmp_item_discounts` ON `tmp_item_discounts`.`shop_item_id` = `tmp`.`id`
LEFT OUTER JOIN `shop_discounts` AS `tmp_discounts` ON `tmp_discounts`.`id` = `tmp_item_discounts`.`shop_discount_id` AND `tmp_discounts`.`id` IN ('2', '3', '4', '5', '6')
WHERE `tmp`.`active` IS NOT NULL AND `tmp`.`deleted` IS NOT NULL
GROUP BY `tmp`.`modification_id`
HAVING `abs_price` > 0
ORDER BY `abs_price` ASC) AS `mods` ON `mods`.`modification_id` = `shop_items`.`id`
LEFT OUTER JOIN `shop_taxes` ON `shop_taxes`.`id` = `shop_items`.`shop_tax_id`
LEFT OUTER JOIN `shop_currencies` ON `shop_currencies`.`id` = `shop_items`.`shop_currency_id`
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`.`id` IN ('2', '3', '4', '5', '6')
WHERE `shop_items`.`shop_id` = '1' AND ( `shop_items`.`start_datetime` < '2025-06-04 05:48:01' OR `shop_items`.`start_datetime` = '0000-00-00 00:00:00' ) AND ( `shop_items`.`end_datetime` > '2025-06-04 05:48:01' OR `shop_items`.`end_datetime` = '0000-00-00 00:00:00' ) AND `shop_items`.`siteuser_group_id` IN (0, -1) AND `shop_items`.`active` = 1 AND `shop_items`.`deleted` = 0
GROUP BY `shop_items`.`id`
modules/core/database/pdo.php:679 Core_Exception->__construct
modules/core/querybuilder/statement.php:86 Core_DataBase_Pdo->query
modules/asmp/shop/controller/show.php:1502 Core_QueryBuilder_Statement->execute
modules/asmp/shop/controller/show.php:729 ASMP_Shop_Controller_Show->_preQueryBuilderInit
hostcmsfiles/lib/lib_75/lib_config_75.php:434 ASMP_Shop_Controller_Show->procces
modules/core/command/controller/default.php:567 include
modules/core/router/route.php:195 Core_Command_Controller_Default->showAction
index.php:379 Core_Router_Route->execute