[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
select `USER_ID` from `b_sale_fuser` where `ID`=60409906
/var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/discountcouponsmanagerbase.php:1650
#2: Bitrix\Sale\DiscountCouponsManagerBase::initUserId()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/discountcouponsmanagerbase.php:151
#3: Bitrix\Sale\DiscountCouponsManagerBase::initUseMode(integer, array)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/discountcouponsmanagerbase.php:430
#4: Bitrix\Sale\DiscountCouponsManagerBase::init()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/discountcouponsmanagerbase.php:767
#5: Bitrix\Sale\DiscountCouponsManagerBase::get(boolean, array, boolean)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/discountcouponsmanagerbase.php:810
#6: Bitrix\Sale\DiscountCouponsManagerBase::getForApply(array, array, boolean)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/discountbase.php:5360
#7: Bitrix\Sale\DiscountBase->loadDiscountList()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/discountbase.php:1276
#8: Bitrix\Sale\DiscountBase->calculateFull()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/sale/lib/discountbase.php:490
#9: Bitrix\Sale\DiscountBase->calculate()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/catalog/general/discount.php:1117
#10: CAllCatalogDiscount::getSaleDiscountsByProduct(array, string, array, array, boolean, array)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/catalog/general/discount.php:1253
#11: CAllCatalogDiscount::GetDiscount(integer, integer, array, array, string, string, array)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:2615
#12: Bitrix\Iblock\Component\Base->calculatePriceBlock(array, array, integer, boolean)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:2399
#13: Bitrix\Iblock\Component\Base->calculateItemPrices(array)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:3149
#14: Bitrix\Iblock\Component\Base->processProducts()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:3625
#15: Bitrix\Iblock\Component\Base->prepareData()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:3578
#16: Bitrix\Iblock\Component\Base->processResultData()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/element.php:243
#17: Bitrix\Iblock\Component\Element->processResultData()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:4032
#18: Bitrix\Iblock\Component\Base->loadData()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:4021
#19: Bitrix\Iblock\Component\Base->initialLoadAction()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/element.php:228
#20: Bitrix\Iblock\Component\Element->initialLoadAction()
	
#21: call_user_func(array)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:4206
#22: Bitrix\Iblock\Component\Base->doAction()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/iblock/lib/component/base.php:4224
#23: Bitrix\Iblock\Component\Base->executeComponent()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component.php:638
#24: CBitrixComponent->includeComponent(string, array, NULL)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/main.php:1037
#25: CAllMain->IncludeComponent(string, string, array)
	/var/www/kssmarket.ru/htdocs/local/templates/letsrock/components/freematiq/main.include/catalog_item/template.php:42
#26: include(string)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component_template.php:720
#27: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component_template.php:815
#28: CBitrixComponentTemplate->IncludeTemplate(array)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component.php:735
#29: CBitrixComponent->showComponentTemplate()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component.php:683
#30: CBitrixComponent->includeComponentTemplate()
	/var/www/kssmarket.ru/htdocs/local/components/freematiq/main.include/class.php:7
#31: VariableSet->executeComponent()
	/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/component.php:638
#32: CBitrixComponent->includeComponent(string, array, NULL)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/main/classes/general/main.php:1037
#33: CAllMain->IncludeComponent(string, string, array)
	/var/www/kssmarket.ru/htdocs/item/index.php:138
#34: include_once(string)
	/var/www/kssmarket.ru/htdocs/bitrix/modules/main/include/urlrewrite.php:159
#35: include_once(string)
	/var/www/kssmarket.ru/htdocs/bitrix/urlrewrite.php:2

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT \n\t`sale_...', Array, NULL) #1 /var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/orm/query/query.php(3190): Bitrix\Main\DB\Connection->query('SELECT \n\t`sale_...') #2 /var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/orm/query/query.php(806): Bitrix\Main\ORM\Query\Query->query('SELECT \n\t`sale_...') #3 /var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/orm/data/datamanager.php(457): Bitrix\Main\ORM\Query\Query->exec() #4 /var/www/kssmarket.ru/htdocs/bitrix/modules/pecom.ecomm/classes/lib/Bitrix/Handler/deliveries.php(69): Bitrix\Main\ORM\Data\DataManager::getList(Array) #5 /var/www/kssmarket.ru/htdocs/bitrix/modules/pecom.ecomm/classes/lib/Bitrix/Handler/deliveries.php(77): Ip in /var/www/kssmarket.ru/htdocs/bitrix/modules/main/lib/db/mysqliconnection.php on line 137