[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`catalog_catalog_iblock`.`IBLOCK_ID` AS `IBLOCK_ID`,
	`catalog_catalog_iblock`.`PRODUCT_IBLOCK_ID` AS `PRODUCT_IBLOCK_ID`,
	`catalog_catalog_iblock`.`SKU_PROPERTY_ID` AS `SKU_PROPERTY_ID`,
	`catalog_catalog_iblock_iblock`.`VERSION` AS `VERSION`,
	`catalog_catalog_iblock_iblock`.`ID` AS `UALIAS_0`
FROM `b_catalog_iblock` `catalog_catalog_iblock` 
INNER JOIN `b_iblock` `catalog_catalog_iblock_iblock` ON `catalog_catalog_iblock`.`IBLOCK_ID` = `catalog_catalog_iblock_iblock`.`ID`
WHERE `catalog_catalog_iblock`.`IBLOCK_ID` = 5
AND (`catalog_catalog_iblock`.`PRODUCT_IBLOCK_ID` IS NOT NULL AND `catalog_catalog_iblock`.`PRODUCT_IBLOCK_ID` <> 0)
/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/catalog/general/catalog_sku.php:113
#5: CAllCatalogSku::GetInfoByOfferIBlock(integer)
	/home/bitrix/www/bitrix/modules/catalog/general/discount.php:3735
#6: CAllCatalogDiscount::SetDiscountProductCache(array, array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:455
#7: Bitrix\Iblock\Component\Base->initCatalogDiscountCache()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3596
#8: Bitrix\Iblock\Component\Base->prepareData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3550
#9: Bitrix\Iblock\Component\Base->processResultData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3955
#10: Bitrix\Iblock\Component\Base->loadData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/elementlist.php:1058
#11: Bitrix\Iblock\Component\ElementList->loadData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:3944
#12: Bitrix\Iblock\Component\Base->initialLoadAction()
	
#13: call_user_func(array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4129
#14: Bitrix\Iblock\Component\Base->doAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4147
#15: Bitrix\Iblock\Component\Base->executeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:648
#16: CBitrixComponent->includeComponent(string, array, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1039
#17: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/sect_footerTabs.php:112
#18: include(string)
	/home/bitrix/www/bitrix/components/bitrix/main.include/templates/.default/template.php:17
#19: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:725
#20: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:820
#21: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:745
#22: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:693
#23: CBitrixComponent->includeComponentTemplate()
	/home/bitrix/www/bitrix/components/bitrix/main.include/component.php:280
#24: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:604
#25: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:663
#26: CBitrixComponent->includeComponent(string, array, NULL)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1039
#27: CAllMain->IncludeComponent(string, string, array)
	/home/bitrix/www/bitrix/templates/dresscodeV2/footer.php:11
#28: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/epilog_before.php:93
#29: require(string)
	/home/bitrix/www/bitrix/modules/main/include/epilog.php:2
#30: require_once(string)
	/home/bitrix/www/bitrix/footer.php:4
#31: require(string)
	/home/bitrix/www/brands/index.php:269
#32: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#33: 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 on line 137
Call Stack
#TimeMemoryFunctionLocation
15.551526553504Bitrix\Main\Diag\ExceptionHandler->handleException( ).../exceptionhandler.php:0
( ! ) Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137
Call Stack
#TimeMemoryFunctionLocation
15.551526553504Bitrix\Main\Diag\ExceptionHandler->handleException( ).../exceptionhandler.php:0
25.554326555664CAllMain::{closure:/home/bitrix/www/bitrix/modules/main/classes/general/main.php:3409-3416}( ).../main.php:0
35.554326539176ob_end_flush ( ).../main.php:3414
45.554326547400CMain->EndBufferContent( ).../main.php:3414
55.554326548472ExecuteModuleEventEx( ).../main.php:3162
65.554626548768Bitrix\Main\Analytics\Counter::onBeforeEndBufferContent( ).../module.php:490
75.561326549272Bitrix\Main\Analytics\SiteSpeed::isIntranetSite( ).../counter.php:92
85.561326549272Bitrix\Main\ORM\Data\DataManager::getList( ).../sitespeed.php:95
95.561426550696Bitrix\Main\ORM\Query\Query->exec( ).../datamanager.php:500
105.562226554136Bitrix\Main\ORM\Query\Query->query( ).../query.php:816
115.562226554136Bitrix\Main\DB\MysqliConnection->query( ).../query.php:3304
125.562226554136Bitrix\Main\DB\MysqliConnection->queryInternal( ).../connection.php:330

( ! ) 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 on line 137
Call Stack
#TimeMemoryFunctionLocation
15.551526553504Bitrix\Main\Diag\ExceptionHandler->handleException( ).../exceptionhandler.php:0
( ! ) Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137
Call Stack
#TimeMemoryFunctionLocation
15.551526553504Bitrix\Main\Diag\ExceptionHandler->handleException( ).../exceptionhandler.php:0
25.565326514816CSecuritySessionHandler->write( ).../session_handler.php:0
35.565426514816CSecuritySessionDB::write( ).../session_handler.php:28
45.565426514816Bitrix\Main\ORM\Data\DataManager::delete( ).../session_db.php:100