[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	`abtest_a_btest`.`ID` AS `ID`,
	`abtest_a_btest`.`SITE_ID` AS `SITE_ID`,
	`abtest_a_btest`.`ACTIVE` AS `ACTIVE`,
	`abtest_a_btest`.`ENABLED` AS `ENABLED`,
	`abtest_a_btest`.`NAME` AS `NAME`,
	`abtest_a_btest`.`DESCR` AS `DESCR`,
	`abtest_a_btest`.`TEST_DATA` AS `TEST_DATA`,
	`abtest_a_btest`.`START_DATE` AS `START_DATE`,
	`abtest_a_btest`.`STOP_DATE` AS `STOP_DATE`,
	`abtest_a_btest`.`DURATION` AS `DURATION`,
	`abtest_a_btest`.`PORTION` AS `PORTION`,
	`abtest_a_btest`.`MIN_AMOUNT` AS `MIN_AMOUNT`,
	`abtest_a_btest`.`USER_ID` AS `USER_ID`,
	`abtest_a_btest`.`SORT` AS `SORT`
FROM `b_abtest` `abtest_a_btest` 

WHERE UPPER(`abtest_a_btest`.`SITE_ID`) like upper('s1')
AND UPPER(`abtest_a_btest`.`ACTIVE`) like upper('Y')
AND `abtest_a_btest`.`START_DATE` <= '2019-11-21 04:12:35'
ORDER BY `SORT` ASC
/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:3209
#2: Bitrix\Main\ORM\Query\Query->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/orm/query/query.php:807
#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/abtest/lib/helper.php:39
#5: Bitrix\ABTest\Helper::getActiveTest()
	/home/bitrix/www/bitrix/modules/abtest/lib/helper.php:126
#6: Bitrix\ABTest\Helper::getContext()
	/home/bitrix/www/bitrix/modules/abtest/lib/eventhandler.php:37
#7: Bitrix\ABTest\EventHandler::onGetCurrentSiteTemplate(object)
	
#8: call_user_func_array(array, array)
	/home/bitrix/www/bitrix/modules/main/lib/eventmanager.php:435
#9: Bitrix\Main\EventManager->sendToEventHandler(array, object)
	/home/bitrix/www/bitrix/modules/main/lib/eventmanager.php:371
#10: Bitrix\Main\EventManager->send(object)
	/home/bitrix/www/bitrix/modules/main/lib/event.php:142
#11: Bitrix\Main\Event->send()
	/home/bitrix/www/bitrix/modules/main/classes/general/main.php:4598
#12: CAllSite::GetCurTemplate()
	/home/bitrix/www/bitrix/modules/main/include.php:540
#13: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#14: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog.php:10
#15: require_once(string)
	/home/bitrix/www/bitrix/header.php:1
#16: require(string)
	/home/bitrix/www/catalog/index.php:2
#17: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#18: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2