[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`sale_internals_discount_module`.`DISCOUNT_ID` AS `DISCOUNT_ID`,
	`sale_internals_discount_module`.`MODULE_ID` AS `MODULE_ID`,
	`sale_internals_discount_module`.`ID` AS `UALIAS_0`
FROM `b_sale_discount_module` `sale_internals_discount_module` 

WHERE `sale_internals_discount_module`.`DISCOUNT_ID` IN (6)
/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:3538
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:949
#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/internals/discountmodule.php:147
#5: Bitrix\Sale\Internals\DiscountModuleTable::getByDiscount(array)
	/home/bitrix/www/bitrix/modules/sale/lib/discount/runtimecache/discountcache.php:86
#6: Bitrix\Sale\Discount\RuntimeCache\DiscountCache->getDiscountModules(array)
	/home/bitrix/www/bitrix/modules/sale/lib/discount/runtimecache/discountcache.php:232
#7: Bitrix\Sale\Discount\RuntimeCache\DiscountCache->getDiscounts(array, array, string, array)
	/home/bitrix/www/bitrix/modules/iblock/classes/general/comp_pricetools.php:152
#8: CIBlockPriceTools::SetCatalogDiscountCache(array, array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:723
#9: Bitrix\Iblock\Component\Base->initPrices()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4044
#10: Bitrix\Iblock\Component\Base->processResultData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:286
#11: Bitrix\Iblock\Component\Element->processResultData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4551
#12: Bitrix\Iblock\Component\Base->loadData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4540
#13: Bitrix\Iblock\Component\Base->initialLoadAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:271
#14: Bitrix\Iblock\Component\Element->initialLoadAction()
	
#15: call_user_func(array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4725
#16: Bitrix\Iblock\Component\Base->doAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4743
#17: Bitrix\Iblock\Component\Base->executeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:656
#18: CBitrixComponent->includeComponent(string, array, object, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1063
#19: CAllMain->IncludeComponent(string, string, array, object)
	/home/bitrix/www/local/templates/.default/components/bitrix/catalog/.default/element.php:134
#20: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:789
#21: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:884
#22: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:764
#23: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:712
#24: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/bitrix/components/bitrix/catalog/component.php:171
#25: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#26: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:680
#27: CBitrixComponent->includeComponent(string, array, boolean, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1063
#28: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/catalog/index.php:424
#29: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#30: 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(3538): Bitrix\Main\DB\Connection->query('SELECT \n\t`main_...') #2 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(949): 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(480): Bit in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137