[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`main_file`.`ID` AS `ID`,
	`main_file`.`TIMESTAMP_X` AS `TIMESTAMP_X`,
	`main_file`.`MODULE_ID` AS `MODULE_ID`,
	`main_file`.`HEIGHT` AS `HEIGHT`,
	`main_file`.`WIDTH` AS `WIDTH`,
	`main_file`.`FILE_SIZE` AS `FILE_SIZE`,
	`main_file`.`CONTENT_TYPE` AS `CONTENT_TYPE`,
	`main_file`.`SUBDIR` AS `SUBDIR`,
	`main_file`.`FILE_NAME` AS `FILE_NAME`,
	`main_file`.`ORIGINAL_NAME` AS `ORIGINAL_NAME`,
	`main_file`.`DESCRIPTION` AS `DESCRIPTION`,
	`main_file`.`HANDLER_ID` AS `HANDLER_ID`,
	`main_file`.`EXTERNAL_ID` AS `EXTERNAL_ID`
FROM `b_file` `main_file` 

WHERE `main_file`.`ID` >= 509060
AND `main_file`.`ID` <= 509069
/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:3398
#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/main/classes/general/file.php:788
#5: CFile::GetFromCache(integer)
	/home/bitrix/www/bitrix/modules/main/classes/general/file.php:965
#6: CFile::GetFileArray(integer)
	/home/bitrix/www/bitrix/modules/toysales.main/classes/images.php:17
#7: Toysales_Images::resizeImage(integer, array)
	/home/bitrix/www/bitrix/modules/toysales.main/classes/images.php:81
#8: Toysales_Images::getResize(string, array)
	/home/bitrix/www/bitrix/modules/toysales.main/classes/images.php:93
#9: Toysales_Images::getResizeCatalogItem(array, array)
	/home/bitrix/www/bitrix/components/toysales/catalog.section/component.php:962
#10: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#11: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:680
#12: CBitrixComponent->includeComponent(string, array, object, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1041
#13: CAllMain->IncludeComponent(string, string, array, object)
	/home/bitrix/www/bitrix/templates/toysales/components/toysales/catalog/.default/section.php:305
#14: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:789
#15: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:884
#16: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:764
#17: CBitrixComponent->showComponentTemplate()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:712
#18: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/www/bitrix/components/toysales/catalog/component.php:153
#19: include(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#20: CBitrixComponent->__includeComponent()
	/home/bitrix/www/bitrix/modules/main/classes/general/component.php:680
#21: CBitrixComponent->includeComponent(string, array, boolean, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1041
#22: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/www/catalog/sale/index.php:382
#23: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#24: 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 * FROM i...', Array, NULL) #1 /home/bitrix/www/bitrix/modules/ingate.seo/lib/core.php(108): Bitrix\Main\DB\Connection->query('SELECT * FROM i...') #2 /home/bitrix/www/bitrix/modules/ingate.seo/lib/app.php(23): Ingate\Seo\Core::getCurrentUrlFromTableByField('\\Ingate\\Seo\\Pag...', 'URL') #3 /home/bitrix/www/bitrix/modules/ingate.seo/lib/app.php(15): Ingate\Seo\App->__construct() #4 /home/bitrix/www/bitrix/modules/ingate.seo/lib/event.php(122): Ingate\Seo\App::getInstance() #5 /home/bitrix/www/bitrix/modules/main/classes/general/module.php(480): Ingate\Seo\Event::OnEndBufferContent('<!DOCTYPE html>...') #6 /home/bitrix/www/bitrix/modules/main/classes/general/main.php(3197): ExecuteModuleEventEx(Array, Array) #7 in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 137