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 'ORDER BY A.titulo ASC' at line 2
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 'AND B.idcategoria = ORDER BY idelemento DESC LIMIT 1' at line 5 in /www/juegosderol/htdocs/Core/Src/Model/PublicacionArticuloModel.php:95 Stack trace: #0 /www/juegosderol/htdocs/Core/Src/Model/PublicacionArticuloModel.php(95): PDOStatement->execute() #1 /www/juegosderol/htdocs/Core/Src/Controller/PublicacionesArticulosController.php(126): PublicacionArticuloModel->GetSigAnt(NULL, NULL, '<', 'DESC') #2 /www/juegosderol/htdocs/Site/elemento.php(59): PublicacionesArticulosController->GetSiguienteAnterior(NULL, NULL, 1) #3 {main} thrown in /www/juegosderol/htdocs/Core/Src/Model/PublicacionArticuloModel.php on line 95