[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`ram_watermark_image`.`ID` AS `ID`,
	`ram_watermark_image`.`IMAGEID` AS `IMAGEID`,
	`ram_watermark_image`.`WIDTH` AS `WIDTH`,
	`ram_watermark_image`.`HEIGHT` AS `HEIGHT`,
	`ram_watermark_image`.`TYPE` AS `TYPE`,
	`ram_watermark_image`.`MODULE` AS `MODULE`,
	`ram_watermark_image`.`ENTITY` AS `ENTITY`,
	`ram_watermark_image`.`OBJECT` AS `OBJECT`,
	`ram_watermark_image`.`FIELD` AS `FIELD`,
	`ram_watermark_image`.`DATE` AS `DATE`,
	`ram_watermark_image`.`HASH` AS `HASH`,
	`ram_watermark_image`.`ITEM` AS `ITEM`,
	`ram_watermark_image`.`TAG` AS `TAG`
FROM `ram_watermark_image` `ram_watermark_image` 

WHERE `ram_watermark_image`.`IMAGEID` = 111946
AND UPPER(`ram_watermark_image`.`TAG`) like upper('nx_original')
LIMIT 0, 1

/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:3538
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:949
#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/main/lib/orm/data/datamanager.php:410
#5: Bitrix\Main\ORM\Data\DataManager::getRow(array)
	/home/bitrix/www/bitrix/modules/ram.watermark/include.php:537
#6: CRamWatermark::checkFile(array, string, NULL)
	/home/bitrix/www/bitrix/modules/ram.watermark/include.php:87
#7: CRamWatermark::OnGetFileSRC(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/module.php:480
#8: ExecuteModuleEventEx(array, array)
	/home/bitrix/www/bitrix/modules/main/classes/general/file.php:795
#9: CFile::GetFromCache(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/file.php:963
#10: CFile::GetFileArray(string)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:623
#11: Bitrix\Iblock\Component\Element->modifyDisplayProperties(integer, array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:798
#12: Bitrix\Iblock\Component\Base->initElementList()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4048
#13: Bitrix\Iblock\Component\Base->processResultData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:286
#14: Bitrix\Iblock\Component\Element->processResultData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4551
#15: Bitrix\Iblock\Component\Base->loadData()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4540
#16: Bitrix\Iblock\Component\Base->initialLoadAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/element.php:271
#17: Bitrix\Iblock\Component\Element->initialLoadAction()
	
#18: call_user_func(array)
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4725
#19: Bitrix\Iblock\Component\Base->doAction()
	/home/bitrix/www/bitrix/modules/iblock/lib/component/base.php:4743
#20: Bitrix\Iblock\Component\Base->executeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:656
#21: CBitrixComponent->includeComponent(string, array, object, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1063
#22: CAllMain->IncludeComponent(string, string, array, object)
	/home/bitrix/www/bitrix/templates/aspro_next/components/bitrix/catalog/main/page_blocks/element_1.php:211
#23: include_once(string)
	/home/bitrix/www/bitrix/templates/aspro_next/components/bitrix/catalog/main/element_normal.php:71
#24: include_once(string)
	/home/bitrix/www/bitrix/templates/aspro_next/components/bitrix/catalog/main/element.php:146
#25: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:789
#26: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:884
#27: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:764
#28: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:712
#29: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/bitrix/components/bitrix/catalog/component.php:171
#30: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#31: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:680
#32: CBitrixComponent->includeComponent(string, array, boolean, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1063
#33: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/catalog/index.php:574
#34: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#35: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2

Fatal error: Uncaught Bitrix\Main\DB\SqlQueryException: Mysql query error: (2006) MySQL server has gone away in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:137 Stack trace: #0 /home/bitrix/www/bitrix/modules/main/lib/db/connection.php(330): Bitrix\Main\DB\MysqliConnection->queryInternal('SELECT \n\t`main_...', Array, NULL) #1 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(3538): Bitrix\Main\DB\Connection->query('SELECT \n\t`main_...') #2 /home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php(949): Bitrix\Main\ORM\Query\Query->query('SELECT \n\t`main_...') #3 /home/bitrix/www/bitrix/modules/main/lib/orm/data/datamanager.php(500): Bitrix\Main\ORM\Query\Query->exec() #4 /home/bitrix/www/bitrix/modules/main/lib/analytics/sitespeed.php(95): Bitrix\Main\ORM\Data\DataManager::getList(Array) #5 /home/bitrix/www/bitrix/modules/main/lib/analytics/counter.php(92): Bitrix\Main\Analytics\SiteSpeed::isIntranetSite('nx') #6 /home/bitrix/www/bitrix/modules/main/classes/general/module.php(480): Bit in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137