[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`sale_internals_discount_entities`.`DISCOUNT_ID` AS `DISCOUNT_ID`,
	`sale_internals_discount_entities`.`MODULE_ID` AS `MODULE_ID`,
	`sale_internals_discount_entities`.`ENTITY` AS `ENTITY`,
	`sale_internals_discount_entities`.`FIELD_ENTITY` AS `FIELD_ENTITY`,
	`sale_internals_discount_entities`.`FIELD_TABLE` AS `FIELD_TABLE`
FROM `b_sale_discount_entities` `sale_internals_discount_entities` 

WHERE `sale_internals_discount_entities`.`DISCOUNT_ID` IN (1,2,67)
/var/www/procash/data/www/procashcompany.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/main/lib/orm/query/query.php:3209
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/main/lib/orm/query/query.php:807
#3: Bitrix\Main\ORM\Query\Query->exec()
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/main/lib/orm/data/datamanager.php:500
#4: Bitrix\Main\ORM\Data\DataManager::getList(array)
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/sale/lib/internals/discountentities.php:224
#5: Bitrix\Sale\Internals\DiscountEntitiesTable::getByDiscount(array)
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/sale/lib/discount/runtimecache/discountcache.php:131
#6: Bitrix\Sale\Discount\RuntimeCache\DiscountCache->getDiscountEntities(array)
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/sale/lib/discountbase.php:4446
#7: Bitrix\Sale\DiscountBase->extendOrderData()
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/sale/lib/discountbase.php:4620
#8: Bitrix\Sale\DiscountBase->executeDiscountList()
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/sale/lib/discountbase.php:1324
#9: Bitrix\Sale\DiscountBase->calculateFull()
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/sale/lib/discountbase.php:490
#10: Bitrix\Sale\DiscountBase->calculate()
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/catalog/general/discount.php:1130
#11: CAllCatalogDiscount::getSaleDiscountsByProduct(array, string, array, array, boolean, boolean)
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/catalog/general/discount.php:1290
#12: CAllCatalogDiscount::GetDiscount(integer, integer, array, array, string, string, boolean)
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/catalog/general/discount.php:865
#13: CAllCatalogDiscount::GetDiscountByPrice(integer, array, string, string)
	/var/www/procash/data/www/procashcompany.ru/service/general.php:87
#14: getProductOfTheDay()
	/var/www/procash/data/www/procashcompany.ru/bitrix/templates/xml_catalog/header.php:52
#15: include_once(string)
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/main/include/prolog_after.php:106
#16: require(string)
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/main/include/prolog.php:11
#17: require_once(string)
	/var/www/procash/data/www/procashcompany.ru/bitrix/header.php:1
#18: require(string)
	/var/www/procash/data/www/procashcompany.ru/brand/index.php:3
#19: include_once(string)
	/var/www/procash/data/www/procashcompany.ru/bitrix/modules/main/include/urlrewrite.php:159
#20: include_once(string)
	/var/www/procash/data/www/procashcompany.ru/bitrix/urlrewrite.php:2