[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 `socialservices_ap`.`ID` DESC
LIMIT 0, 1

/var/www/html/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
	/var/www/html/bitrix/modules/main/lib/db/connection.php:329
#1: Bitrix\Main\DB\Connection->query(string)
	/var/www/html/bitrix/modules/main/lib/entity/query.php:1924
#2: Bitrix\Main\Entity\Query->query(string)
	/var/www/html/bitrix/modules/main/lib/entity/query.php:505
#3: Bitrix\Main\Entity\Query->exec()
	/var/www/html/bitrix/modules/main/lib/entity/datamanager.php:255
#4: Bitrix\Main\Entity\DataManager::getList(array)
	/var/www/html/bitrix/modules/socialservices/lib/ap.php:98
#5: Bitrix\Socialservices\ApTable::getConnection()
	/var/www/html/bitrix/modules/b24connector/lib/connection.php:227
#6: Bitrix\B24Connector\Connection::getFields()
	/var/www/html/bitrix/modules/b24connector/lib/helper.php:120
#7: Bitrix\B24Connector\Helper::onBeforeProlog()
	
#8: call_user_func_array(array, array)
	/var/www/html/bitrix/modules/main/classes/general/module.php:490
#9: ExecuteModuleEventEx(array)
	/var/www/html/bitrix/modules/main/include.php:585
#10: require_once(string)
	/var/www/html/bitrix/modules/main/include/prolog_before.php:14
#11: require_once(string)
	/var/www/html/bitrix/modules/main/include/prolog.php:10
#12: require_once(string)
	/var/www/html/bitrix/header.php:1
#13: require(string)
	/var/www/html/shop/catalog/brands/index.php:9
#14: include_once(string)
	/var/www/html/bitrix/modules/main/include/urlrewrite.php:159
#15: include_once(string)
	/var/www/html/bitrix/urlrewrite.php:2