[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`catalog_price`.`ID` AS `ID`,
	`catalog_price`.`CATALOG_GROUP_ID` AS `CATALOG_GROUP_ID`,
	`catalog_price`.`PRICE` AS `PRICE`,
	`catalog_price`.`CURRENCY` AS `CURRENCY`
FROM `b_catalog_price` `catalog_price` 

WHERE `catalog_price`.`PRODUCT_ID` = 995438
AND `catalog_price`.`CATALOG_GROUP_ID` IN (113)
AND (
	`catalog_price`.`QUANTITY_FROM` <= 1
	OR (`catalog_price`.`QUANTITY_FROM` IS NULL OR `catalog_price`.`QUANTITY_FROM` = 0)
)
AND (
	`catalog_price`.`QUANTITY_TO` >= 1
	OR (`catalog_price`.`QUANTITY_TO` IS NULL OR `catalog_price`.`QUANTITY_TO` = 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:3357
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:825
#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/nextype.magnet/classes/general/cproductevents.php:117
#5: Nextype\Magnet\CProductEvents::OnGetOptimalPriceHandler(integer, integer, array, string, array, string, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/module.php:480
#6: ExecuteModuleEventEx(array, array)
	/home/bitrix/www/bitrix/modules/catalog/general/product.php:954
#7: CAllCatalogProduct::GetOptimalPrice(integer)
	/home/bitrix/www/bitrix/modules/arturgolubev.ecommerce/include.php:478
#8: CArturgolubevEcommerce::getDetailCode(integer, array)
	/home/bitrix/www/bitrix/components/arturgolubev/ecommerce.detail/component.php:18
#9: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#10: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:680
#11: CBitrixComponent->includeComponent(string, array, object, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1039
#12: CAllMain->IncludeComponent(string, string, array, object)
	/home/bitrix/www/bitrix/templates/magnet_s2/components/bitrix/catalog/main/element.php:254
#13: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:789
#14: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:884
#15: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:764
#16: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:712
#17: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/bitrix/components/bitrix/catalog/component.php:171
#18: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#19: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:680
#20: CBitrixComponent->includeComponent(string, array, boolean, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1039
#21: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/ext_www/s2/index.php:782
#22: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#23: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2