[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)

				SELECT NAME, VALUE 
				FROM b_option 
				WHERE MODULE_ID = 'sale' 
			
/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/config/option.php:196
#2: Bitrix\Main\Config\Option::load(string)
	/home/bitrix/www/bitrix/modules/main/lib/config/option.php:38
#3: Bitrix\Main\Config\Option::get(string, string, string, boolean)
	/home/bitrix/www/bitrix/modules/main/classes/general/option.php:30
#4: CAllOption::GetOptionString(string, string, string)
	/home/bitrix/www/bitrix/modules/sale/affiliate.php:2
#5: include_once(string)
	/home/bitrix/www/bitrix/modules/main/classes/general/module.php:453
#6: ExecuteModuleEventEx(array)
	/home/bitrix/www/bitrix/modules/main/include.php:576
#7: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#8: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog.php:10
#9: require_once(string)
	/home/bitrix/www/bitrix/header.php:1
#10: require(string)
	/home/bitrix/www/company/brands/index.php:2
#11: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#12: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2