[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cp1251' at line 1 (400)
SET sql_mode=''cp1251
/var/www/active/data/bitrix/modules/main/lib/db/mysqlconnection.php:116
#0: Bitrix\Main\DB\MysqlConnection->queryInternal(string, array, NULL)
	/var/www/active/data/bitrix/modules/main/lib/db/connection.php:329
#1: Bitrix\Main\DB\Connection->query(string, NULL)
	/var/www/active/data/bitrix/modules/main/lib/db/connection.php:378
#2: Bitrix\Main\DB\Connection->queryExecute(string)
	/var/www/active/data/bitrix/php_interface/after_connect_d7.php:3
#3: include(string)
	/var/www/active/data/bitrix/modules/main/lib/db/connection.php:920
#4: Bitrix\Main\DB\Connection->afterConnected()
	/var/www/active/data/bitrix/modules/main/lib/db/mysqlconnection.php:64
#5: Bitrix\Main\DB\MysqlConnection->connectInternal()
	/var/www/active/data/bitrix/modules/main/lib/db/mysqlconnection.php:103
#6: Bitrix\Main\DB\MysqlConnection->queryInternal(string, array, NULL)
	/var/www/active/data/bitrix/modules/main/lib/db/connection.php:329
#7: Bitrix\Main\DB\Connection->query(string)
	/var/www/active/data/bitrix/modules/main/lib/config/option.php:183
#8: Bitrix\Main\Config\Option::load(string, NULL)
	/var/www/active/data/bitrix/modules/main/lib/config/option.php:53
#9: Bitrix\Main\Config\Option::get(string, string, string)
	/var/www/active/data/bitrix/modules/main/lib/httprequest.php:337
#10: Bitrix\Main\HttpRequest->prepareCookie(array)
	/var/www/active/data/bitrix/modules/main/lib/httprequest.php:63
#11: Bitrix\Main\HttpRequest->__construct(object, array, array, array, array)
	/var/www/active/data/bitrix/modules/main/lib/httpapplication.php:43
#12: Bitrix\Main\HttpApplication->initializeContext(array)
	/var/www/active/data/bitrix/modules/main/lib/application.php:122
#13: Bitrix\Main\Application->initializeExtendedKernel(array)
	/var/www/active/data/bitrix/modules/main/include.php:24
#14: require_once(string)
	/var/www/active/data/bitrix/modules/main/include/prolog_before.php:14
#15: require_once(string)
	/var/www/active/data/bitrix/modules/main/include/prolog.php:10
#16: require_once(string)
	/var/www/active/data/bitrix/header.php:1
#17: require(string)
	/var/www/active/data/en/index.php:1