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 'ORDER BY id ASC' at line 1 in /var/www/html/includes/functions.php:171 Stack trace: #0 /var/www/html/includes/functions.php(171): PDOStatement->execute() #1 /var/www/html/noticia.php(9): getTablaFiltrada('tblImagenesGale...', 'id', 'idGaleria', NULL, Object(PDO)) #2 /var/www/html/index.php(452): include('/var/www/html/n...') #3 {main} thrown in /var/www/html/includes/functions.php on line 171