Fatal error: Uncaught exception 'DatabaseException' with message '_doQuery: [Error message: Could not execute statement]
[Last executed query: SELECT count(*) as total from news n where n.site_id=1 and n.id in (select news_id from tags ts inner join tag t on ts.tag_id=t.id where t.shortname = 'slov'yansk')]
[Native code: 1064]
[Native message: 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 'yansk')' at line 1]
' in /home/dmmarket/yournews.com.ua/www/libs/common/class.Object.php:133
Stack trace:
#0 /home/dmmarket/yournews.com.ua/www/objects/NewsObject.php(32): Object->getOne('SELECT count(*)...')
#1 /home/dmmarket/yournews.com.ua/www/plugins/NewsPlugin.php(38): NewsObject->getTotalCount('1', NULL, 'slov'yansk')
#2 [internal function]: NewsPlugin->viewAllByTag('slov'yansk')
#3 /home/dmmarket/yournews.com.ua/www/jimbo/libs/jimbo/class.Controller.php(222): call_user_func_array(Array, Array)
#4 /home/dmmarket/yournews.com.ua/www/jimbo/libs/j in /home/dmmarket/yournews.com.ua/www/libs/common/class.Object.php on line 133