Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in /usr/home/elsslots/test2/src/model/factory/YearFactory.php:90 Stack trace: #0 /usr/home/elsslots/test2/src/model/factory/YearFactory.php(8): whs\model\factory\YearFactory::get_all_years(2013, 2015) #1 /usr/home/elsslots/test2/src/model/factory/YearFactory.php(117): whs\model\factory\YearFactory::get_year(2014) #2 /usr/home/elsslots/public_html/new/scripts/year.php(3): whs\model\factory\YearFactory::get_year_by_parameter() #3 {main} thrown in /usr/home/elsslots/test2/src/model/factory/YearFactory.php on line 90