[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`iblock_element`.`ID` AS `ID`,
	`iblock_element`.`IBLOCK_ID` AS `IBLOCK_ID`
FROM `b_iblock_element` `iblock_element` 

WHERE `iblock_element`.`ID` IN (39577,39581,39695,39696,39697,39699,39700,39701,39702,39703)
/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/entity/query.php:3038
#2: Bitrix\Main\Entity\Query->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/entity/query.php:797
#3: Bitrix\Main\Entity\Query->exec()
	/home/bitrix/www/bitrix/modules/main/lib/entity/datamanager.php:290
#4: Bitrix\Main\Entity\DataManager::getList(array)
	/home/bitrix/www/bitrix/modules/catalog/general/catalog_sku.php:463
#5: CAllCatalogSku::getOffersList(array)
	/home/bitrix/www/bitrix/modules/catalog/lib/discount/discountmanager.php:841
#6: Bitrix\Catalog\Discount\DiscountManager::extendProductIdsToOffer(array)
	/home/bitrix/www/bitrix/modules/catalog/lib/discount/discountmanager.php:589
#7: Bitrix\Catalog\Discount\DiscountManager::preloadPriceData(array, array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:454
#8: Bitrix\Iblock\Component\Base->initCatalogDiscountCache()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3612
#9: Bitrix\Iblock\Component\Base->prepareData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3566
#10: Bitrix\Iblock\Component\Base->processResultData()
	/home/bitrix/www/bitrix/components/bitrix/catalog.section/class.php:90
#11: CatalogSectionComponent->processResultData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3971
#12: Bitrix\Iblock\Component\Base->loadData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/elementlist.php:1058
#13: Bitrix\Iblock\Component\ElementList->loadData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3960
#14: Bitrix\Iblock\Component\Base->initialLoadAction()
	/home/bitrix/www/bitrix/components/bitrix/catalog.section/class.php:327
#15: CatalogSectionComponent->initialLoadAction()
	
#16: call_user_func(array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4145
#17: Bitrix\Iblock\Component\Base->doAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4163
#18: Bitrix\Iblock\Component\Base->executeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:638
#19: CBitrixComponent->includeComponent(string, array, object)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1041
#20: CAllMain->IncludeComponent(string, string, array, object)
	/home/bitrix/www/bitrix/templates/.default/components/bitrix/catalog/catalog_2017/element.php:314
#21: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:720
#22: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:815
#23: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:735
#24: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:683
#25: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/bitrix/components/bitrix/catalog/component.php:171
#26: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:594
#27: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:653
#28: CBitrixComponent->includeComponent(string, array, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1041
#29: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/catalog/index.php:2492
#30: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#31: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:5

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/mysqlcommonconnection.php(132): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT * FROM `...') #1 /home/bitrix/www/bitrix/modules/main/lib/db/connection.php(716): Bitrix\Main\DB\MysqlCommonConnection->getTableFields('b_sec_session') #2 /home/bitrix/www/bitrix/modules/main/lib/db/sqlhelper.php(387): Bitrix\Main\DB\Connection->getTableField('b_sec_session', 'SESSION_ID') #3 /home/bitrix/www/bitrix/modules/main/lib/entity/datamanager.php(974): Bitrix\Main\DB\SqlHelper->prepareAssignment('b_sec_session', 'SESSION_ID', 'NXkhYFbBWz3LYNp...') #4 /home/bitrix/www/bitrix/modules/security/classes/general/session_db.php(92): Bitrix\Main\Entity\DataManager::delete(Array) #5 [internal function]: CSecuritySessionDB::write('NXkhYFbBWz3LYNp...', 'SESS_AUTH|a:1:{...') #6 [internal function]: sess in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137