Oops! Query failed! Tried to execute:
SELECT COUNT(id) AS agg_result FROM bookmarks WHERE user_id=
The SQL server said: 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 '' at line 1.
The error occurred on line 112 of /var/www/address-multidomain/lib/Mysql.Sql.class.php
#0 ApplicationError->report() called at [/var/www/address-multidomain/lib/Mysql.Sql.class.php:134] #1 Mysql->query(SELECT COUNT(id) AS agg_result FROM bookmarks WHERE user_id= ) called at [/var/www/address-multidomain/lib/ActiveRecord.class.php:1188] #2 ActiveRecord->query(SELECT COUNT(id) AS agg_result FROM bookmarks WHERE user_id= ) called at [/var/www/address-multidomain/lib/ActiveRecord.class.php:1065] #3 ActiveRecord->aggregate_all(count_all, Array ([0] => id,[1] => user_id=)) called at [/var/www/address-multidomain/lib/ActiveRecord.class.php:609] #4 ActiveRecord->__call(count_all, Array ([0] => id,[1] => user_id=)) #5 Bookmark->count_all(id, user_id=) called at [/var/www/address-multidomain/controllers/bookmarks_controller.php:21] #6 BookmarksController->index(Array ([id] => )) called at [/var/www/address-multidomain/lib/BaseController.class.php:328] #7 BaseController->process_route() called at [/var/www/address-multidomain/public/dispatch.php:40]
Oops! Model Class: Bookmark
Error Message: ActiveRecord: Could not perform aggregation.
The error occurred on line 2786 of /var/www/address-multidomain/lib/ActiveRecord.class.php
#0 ApplicationError->report() called at [/var/www/address-multidomain/public/_inc.php:133] #1 exceptionHandler(ApplicationError Object ([] => Model Class: Bookmark
Error Message: ActiveRecord: Could not perform aggregation.,[] => ,[] => 500,[] => /var/www/address-multidomain/lib/ActiveRecord.class.php,[] => 2786,[] => Array ([0] => Array ([file] => /var/www/address-multidomain/lib/ActiveRecord.class.php,[line] => 1066,[function] => raise,[class] => ActiveRecord,[type] => ->,[args] => Array ([0] => ActiveRecord: Could not perform aggregation.)),[1] => Array ([file] => /var/www/address-multidomain/lib/ActiveRecord.class.php,[line] => 609,[function] => aggregate_all,[class] => ActiveRecord,[type] => ->,[args] => Array ([0] => count_all,[1] => Array ([0] => id,[1] => user_id=))),[2] => Array ([function] => __call,[class] => ActiveRecord,[type] => ->,[args] => Array ([0] => count_all,[1] => Array ([0] => id,[1] => user_id=))),[3] => Array ([file] => /var/www/address-multidomain/controllers/bookmarks_controller.php,[line] => 21,[function] => count_all,[class] => Bookmark,[type] => ->,[args] => Array ([0] => id,[1] => user_id=)),[4] => Array ([file] => /var/www/address-multidomain/lib/BaseController.class.php,[line] => 328,[function] => index,[class] => BookmarksController,[type] => ->,[args] => Array ([0] => Array ([id] => ))),[5] => Array ([file] => /var/www/address-multidomain/public/dispatch.php,[line] => 40,[function] => process_route,[class] => BaseController,[type] => ->,[args] => Array ()))))