[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`sale_discount_gift_related_data_d`.`ID` AS `ID2`,
	`sale_discount_gift_related_data_d`.`XML_ID` AS `XML_ID`,
	`sale_discount_gift_related_data_d`.`LID` AS `LID`,
	`sale_discount_gift_related_data_d`.`NAME` AS `NAME`,
	`sale_discount_gift_related_data_d`.`PRICE_FROM` AS `PRICE_FROM`,
	`sale_discount_gift_related_data_d`.`PRICE_TO` AS `PRICE_TO`,
	`sale_discount_gift_related_data_d`.`CURRENCY` AS `CURRENCY`,
	`sale_discount_gift_related_data_d`.`DISCOUNT_VALUE` AS `DISCOUNT_VALUE`,
	`sale_discount_gift_related_data_d`.`DISCOUNT_TYPE` AS `DISCOUNT_TYPE`,
	`sale_discount_gift_related_data_d`.`ACTIVE` AS `ACTIVE`,
	`sale_discount_gift_related_data_d`.`SORT` AS `SORT`,
	`sale_discount_gift_related_data_d`.`ACTIVE_FROM` AS `ACTIVE_FROM`,
	`sale_discount_gift_related_data_d`.`ACTIVE_TO` AS `ACTIVE_TO`,
	`sale_discount_gift_related_data_d`.`TIMESTAMP_X` AS `TIMESTAMP_X`,
	`sale_discount_gift_related_data_d`.`MODIFIED_BY` AS `MODIFIED_BY`,
	`sale_discount_gift_related_data_d`.`DATE_CREATE` AS `DATE_CREATE`,
	`sale_discount_gift_related_data_d`.`CREATED_BY` AS `CREATED_BY`,
	`sale_discount_gift_related_data_d`.`PRIORITY` AS `PRIORITY`,
	`sale_discount_gift_related_data_d`.`LAST_DISCOUNT` AS `LAST_DISCOUNT`,
	`sale_discount_gift_related_data_d`.`VERSION` AS `VERSION`,
	`sale_discount_gift_related_data_d`.`CONDITIONS` AS `CONDITIONS_LIST`,
	`sale_discount_gift_related_data_d`.`CONDITIONS` AS `CONDITIONS`,
	`sale_discount_gift_related_data_d`.`UNPACK` AS `UNPACK`,
	`sale_discount_gift_related_data_d`.`ACTIONS` AS `ACTIONS_LIST`,
	`sale_discount_gift_related_data_d`.`ACTIONS` AS `ACTIONS`,
	`sale_discount_gift_related_data_d`.`APPLICATION` AS `APPLICATION`,
	`sale_discount_gift_related_data_d`.`USE_COUPONS` AS `USE_COUPONS`,
	`sale_discount_gift_related_data_d`.`EXECUTE_MODULE` AS `EXECUTE_MODULE`,
	`sale_discount_gift_related_data`.`ID` AS `UALIAS_0`,
	`sale_discount_gift_related_data_discount_group`.`ID` AS `UALIAS_1`
FROM `b_sale_gift_related_data` `sale_discount_gift_related_data` 
INNER JOIN `b_sale_discount` `sale_discount_gift_related_data_d` ON `sale_discount_gift_related_data`.`DISCOUNT_ID` = `sale_discount_gift_related_data_d`.`ID`
INNER JOIN `b_sale_discount_group` `sale_discount_gift_related_data_discount_group` ON `sale_discount_gift_related_data`.`DISCOUNT_ID` = `sale_discount_gift_related_data_discount_group`.`DISCOUNT_ID`
WHERE `sale_discount_gift_related_data`.`MAIN_PRODUCT_SECTION_ID` = 141
AND `sale_discount_gift_related_data_discount_group`.`ACTIVE` = 'Y'
AND (`sale_discount_gift_related_data_discount_group`.`GROUP_ID` in (2))
/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/orm/query/query.php:3304
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/orm/query/query.php:816
#3: Bitrix\Main\ORM\Query\Query->exec()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/components/bitrix/sale.products.gift.section/class.php:165
#4: SaleProductsGiftSectionComponent->getGiftData()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/components/bitrix/sale.products.gift.section/class.php:102
#5: SaleProductsGiftSectionComponent->getProductIds()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/iblock/lib/component/base.php:4440
#6: Bitrix\Iblock\Component\Base->initialLoadAction()
	
#7: call_user_func(array)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/iblock/lib/component/base.php:4627
#8: Bitrix\Iblock\Component\Base->doAction()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/iblock/lib/component/base.php:4645
#9: Bitrix\Iblock\Component\Base->executeComponent()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component.php:648
#10: CBitrixComponent->includeComponent(string, array, object)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/main.php:1039
#11: CAllMain->IncludeComponent(string, string, array, object, array)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/local/templates/potolkoff/components/bitrix/catalog/bootstrap_v4/section_horizontal.php:186
#12: include(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/local/templates/potolkoff/components/bitrix/catalog/bootstrap_v4/section.php:76
#13: include(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component_template.php:725
#14: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component_template.php:820
#15: CBitrixComponentTemplate->IncludeTemplate(array)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component.php:745
#16: CBitrixComponent->showComponentTemplate()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component.php:693
#17: CBitrixComponent->includeComponentTemplate(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/components/bitrix/catalog/component.php:171
#18: include(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component.php:604
#19: CBitrixComponent->__includeComponent()
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/component.php:663
#20: CBitrixComponent->includeComponent(string, array, boolean)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/classes/general/main.php:1039
#21: CAllMain->IncludeComponent(string, string, array, boolean)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/shop/index.php:304
#22: include_once(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/include/urlrewrite.php:159
#23: include_once(string)
	/var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/urlrewrite.php:2

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT \n\t`main_...', Array, NULL) #1 /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/orm/query/query.php(3304): Bitrix\Main\DB\Connection->query('SELECT \n\t`main_...') #2 /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/orm/query/query.php(816): Bitrix\Main\ORM\Query\Query->query('SELECT \n\t`main_...') #3 /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/orm/data/datamanager.php(500): Bitrix\Main\ORM\Query\Query->exec() #4 /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/analytics in /var/www/potolkoff/data/www/xn----itbkfbbddetfahe7bd.xn--p1ai/bitrix/modules/main/lib/db/mysqliconnection.php on line 137