[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (2006) MySQL server has gone away (400)
SELECT 
	DISTINCT(`sale_internals_order_props`.`ID`) AS `PROPERTY_ID`,
	`sale_internals_order_props`.`ID` AS `ID`,
	`sale_internals_order_props`.`PERSON_TYPE_ID` AS `PERSON_TYPE_ID`,
	`sale_internals_order_props`.`NAME` AS `NAME`,
	`sale_internals_order_props`.`TYPE` AS `TYPE`,
	`sale_internals_order_props`.`REQUIRED` AS `REQUIED`,
	CASE WHEN `sale_internals_order_props`.`TYPE` = 'LOCATION' THEN CAST(`sale_internals_order_props_location`.`ID` AS CHAR(500)) ELSE `sale_internals_order_props`.`DEFAULT_VALUE` END AS `PROXY_DEFAULT_VALUE`,
	`sale_internals_order_props`.`DEFAULT_VALUE` AS `DEFAULT_VALUE_ORIG`,
	`sale_internals_order_props`.`SORT` AS `SORT`,
	`sale_internals_order_props`.`USER_PROPS` AS `USER_PROPS`,
	`sale_internals_order_props`.`IS_LOCATION` AS `IS_LOCATION`,
	`sale_internals_order_props`.`PROPS_GROUP_ID` AS `PROPS_GROUP_ID`,
	`sale_internals_order_props`.`DESCRIPTION` AS `DESCRIPTION`,
	`sale_internals_order_props`.`IS_EMAIL` AS `IS_EMAIL`,
	`sale_internals_order_props`.`IS_PROFILE_NAME` AS `IS_PROFILE_NAME`,
	`sale_internals_order_props`.`IS_PAYER` AS `IS_PAYER`,
	`sale_internals_order_props`.`IS_LOCATION4TAX` AS `IS_LOCATION4TAX`,
	`sale_internals_order_props`.`IS_ZIP` AS `IS_ZIP`,
	`sale_internals_order_props`.`CODE` AS `CODE`,
	`sale_internals_order_props`.`IS_FILTERED` AS `IS_FILTERED`,
	`sale_internals_order_props`.`ACTIVE` AS `ACTIVE`,
	`sale_internals_order_props`.`UTIL` AS `UTIL`,
	`sale_internals_order_props`.`INPUT_FIELD_LOCATION` AS `INPUT_FIELD_LOCATION`,
	`sale_internals_order_props`.`MULTIPLE` AS `MULTIPLE`,
	`sale_internals_order_props`.`SETTINGS` AS `SETTINGS`
FROM `b_sale_order_props` `sale_internals_order_props` 
LEFT JOIN `b_sale_location` `sale_internals_order_props_location` ON `sale_internals_order_props`.`DEFAULT_VALUE` = `sale_internals_order_props_location`.`CODE`
WHERE `sale_internals_order_props`.`PERSON_TYPE_ID` = 1
AND `sale_internals_order_props`.`ENTITY_REGISTRY_TYPE` = 'ORDER'
ORDER BY `SORT` ASC, `NAME` ASC
/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/lib/db/connection.php:330
#1: Bitrix\Main\DB\Connection->query
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/lib/orm/query/query.php:3538
#2: Bitrix\Main\ORM\Query\Query->query
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/lib/orm/query/query.php:949
#3: Bitrix\Main\ORM\Query\Query->exec
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/sale/lib/compatible/compatible.php:601
#4: Bitrix\Sale\Compatible\OrderQuery->compatibleExec
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/sale/general/order_props.php:596
#5: CSaleOrderProps::GetList
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/components/redsign/buy1click/class.php:49
#6: buyOneClick->getAllProps
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/components/redsign/buy1click/class.php:437
#7: buyOneClick->executeComponent
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/component.php:656
#8: CBitrixComponent->includeComponent
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/classes/general/main.php:1063
#9: CAllMain->IncludeComponent
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/templates/os/footer.php:201
#10: include_once(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/include/epilog_before.php:93
#11: require(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/include/epilog.php:2
#12: require_once(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/footer.php:4
#13: require(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/catalog/index.php:280
#14: include_once(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/modules/main/include/urlrewrite.php:159
#15: include_once(string)
	/home/kanzoptima/web/kanzoptima.ru/public_html/bitrix/urlrewrite.php:2