[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 (146,162,165,166,167,168,169,170,171,173,174,175,177,179,180,181,183,184,185,186,187,188,189,190,191,192)
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-05-14 14:45:04'
)
AND (
	(`sale_internals_discount`.`ACTIVE_TO` IS NULL)
	OR `sale_internals_discount`.`ACTIVE_TO` >= '2024-05-14 14:45:04'
)
AND `sale_internals_discount`.`USE_COUPONS` = 'N'
ORDER BY `PRIORITY` DESC, `SORT` ASC, `ID` ASC
/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:3304
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:816
#3: Bitrix\Main\ORM\Query\Query->exec()
	/home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php:500
#4: Bitrix\Main\ORM\Data\DataManager::getList(array)
	/home/bitrix/www/bitrix/modules/sale/lib/discount/runtimecache/discountcache.php:211
#5: Bitrix\Sale\Discount\RuntimeCache\DiscountCache->getDiscounts(array, array, string, array)
	/home/bitrix/www/bitrix/modules/iblock/classes/general/comp_pricetools.php:152
#6: CIBlockPriceTools::SetCatalogDiscountCache(array, array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:702
#7: Bitrix\Iblock\Component\Base->initPrices()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3946
#8: Bitrix\Iblock\Component\Base->processResultData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:286
#9: Bitrix\Iblock\Component\Element->processResultData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4453
#10: Bitrix\Iblock\Component\Base->loadData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4442
#11: Bitrix\Iblock\Component\Base->initialLoadAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:271
#12: Bitrix\Iblock\Component\Element->initialLoadAction()
	
#13: call_user_func(array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4627
#14: Bitrix\Iblock\Component\Base->doAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4645
#15: Bitrix\Iblock\Component\Base->executeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:649
#16: CBitrixComponent->includeComponent(string, array, object)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1039
#17: CAllMain->IncludeComponent(string, string, array, object)
	/home/bitrix/www/local/templates/visagehall/components/bitrix/catalog/main/element.php:208
#18: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:725
#19: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:820
#20: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:746
#21: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:694
#22: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/bitrix/components/bitrix/catalog/component.php:171
#23: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#24: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:664
#25: CBitrixComponent->includeComponent(string, array, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1039
#26: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/catalog/index.php:300
#27: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#28: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /home/bitrix/www/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT \n\t`main_...', Array, NULL) #1 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(3304): Bitrix\Main\DB\Connection->query('SELECT \n\t`main_...') #2 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(816): Bitrix\Main\ORM\Query\Query->query('SELECT \n\t`main_...') #3 /home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php(500): Bitrix\Main\ORM\Query\Query->exec() #4 /home/bitrix/www/bitrix/modules/main/lib/analytics/sitespeed.php(95): Bitrix\Main\ORM\Data\DataManager::getList(Array) #5 /home/bitrix/www/bitrix/modules/main/lib/analytics/counter.php(92): Bitrix\Main\Analytics\SiteSpeed::isIntranetSite('s1') #6 /home/bitrix/www/bitrix/modules/main/classes/general/module.php(490): Bit in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137