Fatal error: Uncaught exception 'Exception' with message 'PDO Error: 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 idioma ='es') AND ai_works.publicado=1' at line 1 Query: SELECT * FROM ai_works WHERE id=(SELECT MIN(id) FROM ai_works WHERE id > AND idioma ='es') AND ai_works.publicado=1' in /home/ggarchitects/www/tinymvc/sysfiles/plugins/tinymvc_pdo.php:508
Stack trace:
#0 /home/ggarchitects/www/tinymvc/sysfiles/plugins/tinymvc_pdo.php(475): TinyMVC_PDO->_query('SELECT * FROM a...', NULL, 1, NULL)
#1 /home/ggarchitects/www/tinymvc/myapp/models/works_model.php(94): TinyMVC_PDO->query_one('SELECT * FROM a...')
#2 /home/ggarchitects/www/tinymvc/myapp/controllers/works/public.php(59): Works_Model->siguiente_id(NULL)
#3 /home/ggarchitects/www/tinymvc/sysfiles/TinyMVC.php(186): Public_Controller->ver()
#4 /home/ggarchitects/www/htdocs/index.php(67): tmvc->main()
#5 /home/ggarchi in /home/ggarchitects/www/tinymvc/sysfiles/plugins/tinymvc_pdo.php on line 508