Warning: PDO::prepare(): SQLSTATE[42000]: Syntax error or access violation: 1064 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 'GROUP BY u.id' at line 52 in /home/grncarij/holding-app.com/application/models/user_model.php on line 285
Fatal error: Uncaught Error: Call to a member function execute() on boolean in /home/grncarij/holding-app.com/application/models/user_model.php:286
Stack trace:
#0 /home/grncarij/holding-app.com/application/models/view_model.php(660): User_model->get_user(NULL)
#1 /home/grncarij/holding-app.com/application/models/view_model.php(34): View_Model->ads_details('images')
#2 /home/grncarij/holding-app.com/application/controller/site.php(153): View_Model->render('site/ads_detail...', true, 'images')
#3 /home/grncarij/holding-app.com/application/libs/app.php(46): Site->ads_details('images', 'icon', 'icon.png')
#4 /home/grncarij/holding-app.com/index.php(17): App->__construct(Object(Controller))
#5 {main}
thrown in /home/grncarij/holding-app.com/application/models/user_model.php on line 286