[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`socialservices_ap`.`ID` AS `ID`,
	`socialservices_ap`.`TIMESTAMP_X` AS `TIMESTAMP_X`,
	`socialservices_ap`.`USER_ID` AS `USER_ID`,
	`socialservices_ap`.`DOMAIN` AS `DOMAIN`,
	`socialservices_ap`.`ENDPOINT` AS `ENDPOINT`,
	`socialservices_ap`.`LOGIN` AS `LOGIN`,
	`socialservices_ap`.`PASSWORD` AS `PASSWORD`,
	`socialservices_ap`.`LAST_AUTHORIZE` AS `LAST_AUTHORIZE`,
	`socialservices_ap`.`SETTINGS` AS `SETTINGS`
FROM `b_socialservices_ap` `socialservices_ap` 

ORDER BY `ID` DESC
LIMIT 0, 1

/home/bitrix/ext_www/tsnnedv.ru/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/home/bitrix/ext_www/tsnnedv.ru/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query(string)
	/home/bitrix/ext_www/tsnnedv.ru/bitrix/modules/main/lib/entity/query.php:3038
#2: Bitrix\Main\Entity\Query->query(string)
	/home/bitrix/ext_www/tsnnedv.ru/bitrix/modules/main/lib/entity/query.php:797
#3: Bitrix\Main\Entity\Query->exec()
	/home/bitrix/ext_www/tsnnedv.ru/bitrix/modules/main/lib/entity/datamanager.php:290
#4: Bitrix\Main\Entity\DataManager::getList(array)
	/home/bitrix/ext_www/tsnnedv.ru/bitrix/modules/socialservices/lib/ap.php:96
#5: Bitrix\Socialservices\ApTable::getConnection()
	/home/bitrix/ext_www/tsnnedv.ru/bitrix/modules/b24connector/lib/connection.php:229
#6: Bitrix\B24Connector\Connection::getFields()
	/home/bitrix/ext_www/tsnnedv.ru/bitrix/modules/b24connector/lib/helper.php:120
#7: Bitrix\B24Connector\Helper::onBeforeProlog()
	/home/bitrix/ext_www/tsnnedv.ru/bitrix/modules/main/classes/general/module.php:490
#8: ExecuteModuleEventEx(array)
	/home/bitrix/ext_www/tsnnedv.ru/bitrix/modules/main/include.php:565
#9: require_once(string)
	/home/bitrix/ext_www/tsnnedv.ru/bitrix/modules/main/include/prolog_before.php:14
#10: require(string)
	/home/bitrix/ext_www/tsnnedv.ru/bitrix/seo.urlrewrite.php:1