[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` >= 390420
AND `main_file`.`ID` <= 390429
/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/lib/orm/query/query.php:3306
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/lib/orm/query/query.php:817
#3: Bitrix\Main\ORM\Query\Query->exec()
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/lib/orm/data/datamanager.php:500
#4: Bitrix\Main\ORM\Data\DataManager::getList(array)
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/classes/general/file.php:492
#5: CAllFile::GetFromCache(string)
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/classes/general/file.php:664
#6: CAllFile::GetFileArray(string)
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/classes/general/file.php:1615
#7: CAllFile::ResizeImageGet(string, array, integer, boolean)
	/home/bitrix/ext_www/milpitas.by/bitrix/templates/dresscodeV2/components/bitrix/news/collection2.0/detail.php:135
#8: include(string)
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/classes/general/component_template.php:789
#9: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/classes/general/component_template.php:884
#10: CBitrixComponentTemplate->IncludeTemplate(array)
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/classes/general/component.php:746
#11: CBitrixComponent->showComponentTemplate()
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/classes/general/component.php:694
#12: CBitrixComponent->includeComponentTemplate(string)
	/home/bitrix/ext_www/milpitas.by/bitrix/components/bitrix/news/component.php:216
#13: include(string)
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/classes/general/component.php:605
#14: CBitrixComponent->__includeComponent()
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/classes/general/component.php:664
#15: CBitrixComponent->includeComponent(string, array, boolean)
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/classes/general/main.php:1039
#16: CAllMain->IncludeComponent(string, string, array, boolean)
	/home/bitrix/ext_www/milpitas.by/collection/index.php:242
#17: include_once(string)
	/home/bitrix/ext_www/milpitas.by/bitrix/modules/main/include/urlrewrite.php:159
#18: include_once(string)
	/home/bitrix/ext_www/milpitas.by/bitrix/urlrewrite.php:2