Oops! Query failed! Tried to execute: SELECT COUNT(*) AS agg_result FROM news LEFT JOIN news_i18n ON news.id = news_i18n.i18n_foreign_key AND news_i18n.i18n_locale = 'bg-BG' WHERE title LIKE '%Шиниъд%' OR title LIKE '%О'Конър%' The SQL server said: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Конър%'' at line 3.
The error occurred on line 87 of /var/virtualwww/mysql_app_www/myhoroscope.bg/core/MagMySqli.php

#0  MagException->report() called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/core/MagMySqli.php:107]
#1  MagMySqli->query(SELECT COUNT(*) AS agg_result FROM news LEFT JOIN news_i18n
						ON news.id = news_i18n.i18n_foreign_key
						AND news_i18n.i18n_locale = 'bg-BG' WHERE title LIKE '%Шиниъд%' OR title LIKE '%О'Конър%' ) called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/core/ActiveRecord.php:1299]
#2  ActiveRecord->query(SELECT COUNT(*) AS agg_result FROM news LEFT JOIN news_i18n
						ON news.id = news_i18n.i18n_foreign_key
						AND news_i18n.i18n_locale = 'bg-BG' WHERE title LIKE '%Шиниъд%' OR title LIKE '%О'Конър%' ) called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/core/ActiveRecord.php:1172]
#3  ActiveRecord->aggregate_all(count_all, Array ([0] => *,[1] => title LIKE '%Шиниъд%' OR title LIKE '%О'Конър%',[2] => )) called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/core/ActiveRecord.php:677]
#4  ActiveRecord->__call(count_all, Array ([0] => *,[1] => title LIKE '%Шиниъд%' OR title LIKE '%О'Конър%',[2] => ))
#5  News->count_all(*, title LIKE '%Шиниъд%' OR title LIKE '%О'Конър%', ) called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/core/ActiveRecord.php:1516]
#6  ActiveRecord->find_all(title LIKE '%Шиниъд%' OR title LIKE '%О'Конър%', created_on DESC, 5) called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/controllers/news_controller.php:76]
#7  NewsController->article(Array ([id] => 1261)) called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/core/BaseController.php:687]
#8  BaseController->process_route() called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/public/dispatch.php:42]

Oops! Model Class: News
Error Message: ActiveRecord: Could not perform aggregation.
The error occurred on line 2957 of /var/virtualwww/mysql_app_www/myhoroscope.bg/core/ActiveRecord.php

#0  MagException->report() called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/core/MagException.php:138]
#1  ActiveRecordException->__construct(Model Class: News
Error Message: ActiveRecord: Could not perform aggregation., 500) called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/core/ActiveRecord.php:2957] #2 ActiveRecord->raise(ActiveRecord: Could not perform aggregation.) called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/core/ActiveRecord.php:1173] #3 ActiveRecord->aggregate_all(count_all, Array ([0] => *,[1] => title LIKE '%Шиниъд%' OR title LIKE '%О'Конър%',[2] => )) called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/core/ActiveRecord.php:677] #4 ActiveRecord->__call(count_all, Array ([0] => *,[1] => title LIKE '%Шиниъд%' OR title LIKE '%О'Конър%',[2] => )) #5 News->count_all(*, title LIKE '%Шиниъд%' OR title LIKE '%О'Конър%', ) called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/core/ActiveRecord.php:1516] #6 ActiveRecord->find_all(title LIKE '%Шиниъд%' OR title LIKE '%О'Конър%', created_on DESC, 5) called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/controllers/news_controller.php:76] #7 NewsController->article(Array ([id] => 1261)) called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/core/BaseController.php:687] #8 BaseController->process_route() called at [/var/virtualwww/mysql_app_www/myhoroscope.bg/public/dispatch.php:42]