[Bitrix\Main\DB\SqlQueryException] 
Mysql query error: (1305) FUNCTION taktikam_base.get_last_msg does not exist (400)
SELECT get_last_msg(0) as last_msg
LIMIT 0, 1

/home/t/taktikam/public_html/bitrix/modules/main/lib/db/mysqliconnection.php:137
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, NULL, NULL)
	/home/t/taktikam/public_html/bitrix/modules/main/lib/db/connection.php:329
#1: Bitrix\Main\DB\Connection->query(string, NULL, integer, integer)
	/home/t/taktikam/public_html/bitrix/modules/main/lib/db/connection.php:357
#2: Bitrix\Main\DB\Connection->queryScalar(string)
	/home/t/taktikam/public_html/bitrix/modules/social.chat/lib/topic.php:170
#3: Social\Chat\TopicTable::getThemeLastMsg(integer)
	/home/t/taktikam/public_html/bitrix/components/socialchat/main.window/class.php:71
#4: ChatWindow->defaultAction()
	/home/t/taktikam/public_html/bitrix/components/socialchat/main.window/class.php:51
#5: ChatWindow->executeAction()
	/home/t/taktikam/public_html/bitrix/components/socialchat/main.window/class.php:397
#6: ChatWindow->executeComponent()
	/home/t/taktikam/public_html/bitrix/modules/main/classes/general/component.php:588
#7: CBitrixComponent->includeComponent(string, array, NULL)
	/home/t/taktikam/public_html/bitrix/modules/main/classes/general/main.php:1041
#8: CAllMain->IncludeComponent(string, string, array)
	/home/t/taktikam/public_html/chat1/index.php:10