Notice: Trying to get property 'id' of non-object in /var/www/sporty2.net/public/core/app/view/events-view.php on line 304

Fatal error: Uncaught Error: Call to a member function fetch_array() on boolean in /var/www/sporty2.net/public/core/controller/Model.php:44 Stack trace: #0 /var/www/sporty2.net/super/core/app/model/EventSportData.php(195): Model::one(false, Object(EventSportData)) #1 /var/www/sporty2.net/public/core/app/view/events-view.php(304): EventSportData::getByeventusport(NULL, '2') #2 /var/www/sporty2.net/public/core/controller/View.php(23): include('/var/www/sporty...') #3 /var/www/sporty2.net/public/core/app/layouts/layout.php(500): View::load('events') #4 /var/www/sporty2.net/public/core/controller/Module.php(11): include('/var/www/sporty...') #5 /var/www/sporty2.net/public/core/app/init.php(26): Module::loadLayout('index') #6 /var/www/sporty2.net/public/core/controller/Lb.php(25): include('/var/www/sporty...') #7 /var/www/sporty2.net/public/index.php(24): Lb->start() #8 {main} thrown in /var/www/sporty2.net/public/core/controller/Model.php on line 44