[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` >= 160
AND `main_file`.`ID` <= 169
/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/lib/orm/query/query.php:3538
#2: Bitrix\Main\ORM\Query\Query->query
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/lib/orm/query/query.php:949
#3: Bitrix\Main\ORM\Query\Query->exec
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/lib/orm/data/datamanager.php:500
#4: Bitrix\Main\ORM\Data\DataManager::getList
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/file.php:786
#5: CFile::GetFromCache
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/file.php:963
#6: CFile::GetFileArray
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/file.php:1940
#7: CFile::ResizeImageGet
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/redsign.devfunc/classes/general/main.php:416
#8: RSDevFunc::GetNoPhoto
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/redsign.devfunc/classes/general/offersext.php:580
#9: RSDevFuncOffersExtension::getPictures
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/redsign.devfunc/classes/general/offersext.php:19
#10: RSDevFuncOffersExtension::__callStatic
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/templates/os/components/bitrix/catalog.section/catalog/result_modifier.php:47
#11: include(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/component_template.php:946
#12: CBitrixComponentTemplate->__IncludeMutatorFile
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/component_template.php:853
#13: CBitrixComponentTemplate->IncludeTemplate
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/component.php:764
#14: CBitrixComponent->showComponentTemplate
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/component.php:712
#15: CBitrixComponent->includeComponentTemplate
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/iblock/lib/component/base.php:4561
#16: Bitrix\Iblock\Component\Base->loadData
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/iblock/lib/component/elementlist.php:1232
#17: Bitrix\Iblock\Component\ElementList->loadData
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/iblock/lib/component/base.php:4540
#18: Bitrix\Iblock\Component\Base->initialLoadAction
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/components/bitrix/catalog.section/class.php:334
#19: CatalogSectionComponent->initialLoadAction
	
#20: call_user_func
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/iblock/lib/component/base.php:4725
#21: Bitrix\Iblock\Component\Base->doAction
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/iblock/lib/component/base.php:4743
#22: Bitrix\Iblock\Component\Base->executeComponent
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/component.php:656
#23: CBitrixComponent->includeComponent
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/main.php:1063
#24: CAllMain->IncludeComponent
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/templates/os/components/bitrix/catalog/al/sections.php:361
#25: include(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/component_template.php:789
#26: CBitrixComponentTemplate->__IncludePHPTemplate
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/component_template.php:884
#27: CBitrixComponentTemplate->IncludeTemplate
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/component.php:764
#28: CBitrixComponent->showComponentTemplate
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/component.php:712
#29: CBitrixComponent->includeComponentTemplate
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/components/bitrix/catalog/component.php:171
#30: include(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/component.php:605
#31: CBitrixComponent->__includeComponent
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/component.php:680
#32: CBitrixComponent->includeComponent
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/main.php:1063
#33: CAllMain->IncludeComponent
	/home/kanzoptima/web/kanzoptima.ru/public_html/catalog/index.php:279
#34: include_once(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/include/urlrewrite.php:159
#35: include_once(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/urlrewrite.php:2