[Error] 
Call to a member function Fetch() on boolean (0)
/mnt/bitrix/www-ag/local/modules/open/classes/mysql/open_ctreatment.php:2055
#0: CTreatmentO::Counter(integer)
	/mnt/bitrix/www-ag/local/components/dorogan/treatment.detail/component.php:6
#1: include(string)
	/mnt/bitrix/symlinks/bitrix/modules/main/classes/general/component.php:594
#2: CBitrixComponent->__includeComponent()
	/mnt/bitrix/symlinks/bitrix/modules/main/classes/general/component.php:653
#3: CBitrixComponent->includeComponent(string, array, boolean)
	/mnt/bitrix/symlinks/bitrix/modules/main/classes/general/main.php:1037
#4: CAllMain->IncludeComponent(string, string, array, boolean)
	/mnt/bitrix/www-ag/detail.php:8