[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`sale_internals_basket`.`ID` AS `ID`,
	`sale_internals_basket`.`PRODUCT_ID` AS `PRODUCT_ID`,
	`sale_internals_basket`.`DELAY` AS `DELAY`,
	`sale_internals_basket`.`SUBSCRIBE` AS `SUBSCRIBE`,
	`sale_internals_basket`.`CAN_BUY` AS `CAN_BUY`,
	`sale_internals_basket`.`TYPE` AS `TYPE`,
	`sale_internals_basket`.`SET_PARENT_ID` AS `SET_PARENT_ID`
FROM `b_sale_basket` `sale_internals_basket` 

WHERE `sale_internals_basket`.`FUSER_ID` = 86098812
AND `sale_internals_basket`.`LID` = 's1'
AND (`sale_internals_basket`.`ORDER_ID` IS NULL OR `sale_internals_basket`.`ORDER_ID` = 0)
/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/lib/db/connection.php:329
#1: Bitrix\Main\DB\Connection->query(string)
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/lib/entity/query.php:1924
#2: Bitrix\Main\Entity\Query->query(string)
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/lib/entity/query.php:505
#3: Bitrix\Main\Entity\Query->exec()
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/sale/lib/compatible/compatible.php:593
#4: Bitrix\Sale\Compatible\OrderQuery->compatibleExec(object, NULL)
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/sale/lib/compatible/internals/entitycompatibility.php:476
#5: Bitrix\Sale\Compatible\Internals\EntityCompatibility->execute()
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/sale/lib/compatible/internals/entitycompatibility.php:150
#6: Bitrix\Sale\Compatible\Internals\EntityCompatibility::setGetListParameters(object, array, array, boolean, boolean, array, boolean)
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/sale/lib/compatible/internals/entitycompatibility.php:98
#7: Bitrix\Sale\Compatible\Internals\EntityCompatibility::getList(array, array, boolean, boolean, array)
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/sale/mysql/basket.php:61
#8: CSaleBasket::GetList(array, array, boolean, boolean, array)
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/aspro.mshop/classes/general/CMShop.php:3846
#9: CMShop::getBasketAspro()
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/aspro.mshop/classes/general/CMShop.php:1976
#10: CMShop::SetJSOptions()
	/var/www/www-root/data/www/avelonsport.ru/bitrix/templates/aspro_mshop/header.php:44
#11: include_once(string)
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/include/prolog_after.php:96
#12: require(string)
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/include/prolog.php:11
#13: require_once(string)
	/var/www/www-root/data/www/avelonsport.ru/bitrix/header.php:1
#14: require(string)
	/var/www/www-root/data/www/avelonsport.ru/catalog/index.php:1
#15: include_once(string)
	/var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/include/urlrewrite.php:159
#16: include_once(string)
	/var/www/www-root/data/www/avelonsport.ru/bitrix/urlrewrite.php:2

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/lib/db/connection.php(329): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT 'x' FROM...', Array, NULL) #1 /var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/lib/eventmanager.php(185): Bitrix\Main\DB\Connection->query('SELECT 'x' FROM...') #2 /var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/lib/eventmanager.php(156): Bitrix\Main\EventManager->registerEventHandlerInternal('sale', 'OnSaleCancelOrd...', 'tcsbank.kupivkr...', 'CTCSBank', 'OnCancelOrder', 100, '', '', 1) #3 /var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/classes/general/module.php(507): Bitrix\Main\EventManager->registerEventHandlerCompatible('sale', 'OnSaleCancelOrd...', 'tcsbank.kupivkr...', 'CTCSBank', 'OnCancelOrder', 100, '', Array) in /var/www/www-root/data/www/avelonsport.ru/bitrix/modules/main/lib/db/mysqliconnection.php on line 137