[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`sale_internals_discount`.`ID` AS `ID`,
	`sale_internals_discount`.`PRIORITY` AS `PRIORITY`,
	`sale_internals_discount`.`SORT` AS `SORT`,
	`sale_internals_discount`.`LAST_DISCOUNT` AS `LAST_DISCOUNT`,
	`sale_internals_discount`.`LAST_LEVEL_DISCOUNT` AS `LAST_LEVEL_DISCOUNT`,
	`sale_internals_discount`.`UNPACK` AS `UNPACK`,
	`sale_internals_discount`.`APPLICATION` AS `APPLICATION`,
	`sale_internals_discount`.`USE_COUPONS` AS `USE_COUPONS`,
	`sale_internals_discount`.`EXECUTE_MODULE` AS `EXECUTE_MODULE`,
	`sale_internals_discount`.`NAME` AS `NAME`,
	`sale_internals_discount`.`CONDITIONS` AS `CONDITIONS_LIST`,
	`sale_internals_discount`.`ACTIONS` AS `ACTIONS_LIST`,
	`sale_internals_discount`.`ACTIVE_FROM` AS `ACTIVE_FROM`,
	`sale_internals_discount`.`ACTIVE_TO` AS `ACTIVE_TO`,
	`sale_internals_discount`.`PREDICTIONS` AS `PREDICTIONS_LIST`,
	`sale_internals_discount`.`PREDICTIONS_APP` AS `PREDICTIONS_APP`,
	`sale_internals_discount`.`PREDICTION_TEXT` AS `PREDICTION_TEXT`,
	`sale_internals_discount`.`PRESET_ID` AS `PRESET_ID`,
	`sale_internals_discount`.`CURRENCY` AS `CURRENCY`,
	`sale_internals_discount`.`LID` AS `LID`,
	`sale_internals_discount`.`SHORT_DESCRIPTION` AS `SHORT_DESCRIPTION`,
	`sale_internals_discount`.`SHORT_DESCRIPTION` AS `SHORT_DESCRIPTION_STRUCTURE`
FROM `b_sale_discount` `sale_internals_discount` 

WHERE `sale_internals_discount`.`ID` IN (2,7,15,16,19,44,48,54,62,63,64,65,67,68,69,70,71,72,73,84,85,86,87,88,89,90,91,92,93,94,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,135,137,138,139,140,141,142,143)
AND `sale_internals_discount`.`LID` = 's1'
AND `sale_internals_discount`.`EXECUTE_MODULE` IN ('all', 'catalog')
AND (
	(`sale_internals_discount`.`ACTIVE_FROM` IS NULL)
	OR `sale_internals_discount`.`ACTIVE_FROM` <= '2024-03-29 06:36:32'
)
AND (
	(`sale_internals_discount`.`ACTIVE_TO` IS NULL)
	OR `sale_internals_discount`.`ACTIVE_TO` >= '2024-03-29 06:36:32'
)
AND `sale_internals_discount`.`USE_COUPONS` = 'N'
ORDER BY `PRIORITY` DESC, `SORT` ASC, `ID` ASC
/var/www/www-root/data/www/amarket.online/bitrix/modules/main/lib/db/mysqliconnection.php:146
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/lib/db/connection.php:327
#1: Bitrix\Main\DB\Connection->query(string)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/lib/orm/query/query.php:3558
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/lib/orm/query/query.php:952
#3: Bitrix\Main\ORM\Query\Query->exec()
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/lib/orm/data/datamanager.php:513
#4: Bitrix\Main\ORM\Data\DataManager::getList(array)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/sale/lib/discount/runtimecache/discountcache.php:212
#5: Bitrix\Sale\Discount\RuntimeCache\DiscountCache->getDiscounts(array, array, string, array)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/iblock/classes/general/comp_pricetools.php:152
#6: CIBlockPriceTools::SetCatalogDiscountCache(array, array)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/iblock/lib/component/base.php:725
#7: Bitrix\Iblock\Component\Base->initPrices()
	/var/www/www-root/data/www/amarket.online/bitrix/modules/iblock/lib/component/base.php:4083
#8: Bitrix\Iblock\Component\Base->processResultData()
	/var/www/www-root/data/www/amarket.online/bitrix/modules/iblock/lib/component/element.php:287
#9: Bitrix\Iblock\Component\Element->processResultData()
	/var/www/www-root/data/www/amarket.online/bitrix/modules/iblock/lib/component/base.php:4603
#10: Bitrix\Iblock\Component\Base->loadData()
	/var/www/www-root/data/www/amarket.online/bitrix/modules/iblock/lib/component/base.php:4592
#11: Bitrix\Iblock\Component\Base->initialLoadAction()
	/var/www/www-root/data/www/amarket.online/bitrix/modules/iblock/lib/component/element.php:272
#12: Bitrix\Iblock\Component\Element->initialLoadAction()
	
#13: call_user_func(array)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/iblock/lib/component/base.php:4778
#14: Bitrix\Iblock\Component\Base->doAction()
	/var/www/www-root/data/www/amarket.online/bitrix/modules/iblock/lib/component/base.php:4796
#15: Bitrix\Iblock\Component\Base->executeComponent()
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/classes/general/component.php:660
#16: CBitrixComponent->includeComponent(string, array, object, boolean)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/classes/general/main.php:1072
#17: CAllMain->IncludeComponent(string, string, array, object)
	/var/www/www-root/data/www/amarket.online/local/templates/bitlate_main/components/bitrix/catalog/.default/element.php:48
#18: include(string)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/classes/general/component_template.php:790
#19: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/classes/general/component_template.php:885
#20: CBitrixComponentTemplate->IncludeTemplate(array)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/classes/general/component.php:775
#21: CBitrixComponent->showComponentTemplate()
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/classes/general/component.php:716
#22: CBitrixComponent->includeComponentTemplate(string)
	/var/www/www-root/data/www/amarket.online/bitrix/components/bitrix/catalog/component.php:171
#23: include(string)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/classes/general/component.php:607
#24: CBitrixComponent->__includeComponent()
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/classes/general/component.php:684
#25: CBitrixComponent->includeComponent(string, array, NULL, boolean)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/classes/general/main.php:1072
#26: CAllMain->IncludeComponent(string, string, array)
	/var/www/www-root/data/www/amarket.online/local/templates/bitlate_main/include/s1/catalog.php:483
#27: include(string)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/classes/general/main.php:1403
#28: CAllMain->IncludeFile(string, array)
	/var/www/www-root/data/www/amarket.online/catalog/index.php:12
#29: include_once(string)
	/var/www/www-root/data/www/amarket.online/bitrix/modules/main/include/urlrewrite.php:174
#30: include_once(string)
	/var/www/www-root/data/www/amarket.online/bitrix/urlrewrite.php:2
----------

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/www-root/data/www/amarket.online/bitrix/modules/main/lib/db/mysqliconnection.php:146 Stack trace: #0 /var/www/www-root/data/www/amarket.online/bitrix/modules/main/lib/db/connection.php(327): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT \n\t`sale_...', Array, NULL) #1 /var/www/www-root/data/www/amarket.online/bitrix/modules/main/lib/orm/query/query.php(3558): Bitrix\Main\DB\Connection->query('SELECT \n\t`sale_...') #2 /var/www/www-root/data/www/amarket.online/bitrix/modules/main/lib/orm/query/query.php(952): Bitrix\Main\ORM\Query\Query->query('SELECT \n\t`sale_...') #3 /var/www/www-root/data/www/amarket.online/bitrix/modules/main/lib/orm/data/datamanager.php(513): Bitrix\Main\ORM\Query\Query->exec() #4 /var/www/www-root/data/www/amarket.online/bitrix/modules/pecom.ecomm/classes/lib/Bitrix/Handler/deliveries.php(69): Bitrix\Main\ORM\Data\DataManager::getList(Array) #5 /var/www/www-root/data/www/ in /var/www/www-root/data/www/amarket.online/bitrix/modules/main/lib/db/mysqliconnection.php on line 146