Warning: Trying to access array offset on value of type bool in /home/ugn/public_html/app/Controllers/Site.php on line 167
Warning: Trying to access array offset on value of type bool in /home/ugn/public_html/app/Controllers/Site.php on line 169
Warning: Trying to access array offset on value of type bool in /home/ugn/public_html/app/Controllers/Site.php on line 170
Warning: Trying to access array offset on value of type bool in /home/ugn/public_html/app/Controllers/Site.php on line 171
Warning: Trying to access array offset on value of type bool in /home/ugn/public_html/app/Models/NewsModel.php on line 41
Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'AND `status`=1 AND `country`='16' ORDER BY `score` DESC LIMIT 5' at line 3 in /home/ugn/public_html/app/Helpers/Database.php:84
Stack trace:
#0 /home/ugn/public_html/app/Helpers/Database.php(84): PDOStatement->execute()
#1 /home/ugn/public_html/app/Models/NewsModel.php(57): Helpers\Database->select('SELECT `id`,`pu...')
#2 /home/ugn/public_html/app/Controllers/Site.php(175): Models\NewsModel::getSimilarNews('', 5)
#3 [internal function]: Controllers\Site->news_inner('userfiles', '8(41).jpg')
#4 /home/ugn/public_html/app/Core/Router.php(128): call_user_func_array(Array, Array)
#5 /home/ugn/public_html/app/Core/Router.php(251): Core\Router::invokeObject('Controllers\\Sit...', Array)
#6 /home/ugn/public_html/app/Core/routes.php(103): Core\Router::dispatch(false)
#7 /home/ugn/public_html/index.php(87): require('/home/ugn/publi...')
#8 {main}
thrown in /home/ugn/public_html/app/Helpers/Database.php on line 84