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 MySQL server version for the right syntax to use near '-10, 10' at line 1 in /home1/centr071/public_html/App/Models/NoticiasModel.php:129
Stack trace:
#0 /home1/centr071/public_html/App/Models/NoticiasModel.php(129): PDOStatement->execute()
#1 /home1/centr071/public_html/App/Views/pages/sections/noticias.php(16): App\Models\NoticiasModel::MostrarNoticia(-10)
#2 /home1/centr071/public_html/App/Views/pages/feed.php(47): include('/home1/centr071...')
#3 /home1/centr071/public_html/App/Views/MainView.php(8): include('/home1/centr071...')
#4 /home1/centr071/public_html/App/Controllers/NoticiasController.php(11): App\Views\MainView::render('feed')
#5 /home1/centr071/public_html/App/App.php(31): App\Controllers\NoticiasController->index()
#6 /home1/centr071/public_html/index.php(16): App\App->run()
#7 {main}
thrown in /home1/centr071/public_html/App/Models/NoticiasModel.php on line 129