Fatal error: Uncaught Exception: 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 'ORDER BY orden' at line 1 Query: SELECT * FROM default_propiedades, dic_housetype d, propiedades_relacionadas WHERE obra_nueva=0 and d.codigo=tipo and idrelacionada=id and idpropiedad= ORDER BY orden in /home/alquileresaltamar/www/tinymvc/sysfiles/plugins/tinymvc_pdo.php:508
Stack trace:
#0 /home/alquileresaltamar/www/tinymvc/sysfiles/plugins/tinymvc_pdo.php(438): TinyMVC_PDO->_query('SELECT * FROM ...', NULL, 0, 2)
#1 /home/alquileresaltamar/www/tinymvc/myapp/models/propiedades_public_model.php(256): TinyMVC_PDO->query('SELECT * FROM ...')
#2 /home/alquileresaltamar/www/tinymvc/myapp/controllers/propiedades/public.php(101): Propiedades_public_Model->obtener_propiedades_relacionadas(NULL)
#3 /home/alquileresaltamar/www/tinymvc/sysfiles/TinyMVC.php(186): Public_Controller->ver()
#4 / in /home/alquileresaltamar/www/tinymvc/sysfiles/plugins/tinymvc_pdo.php on line 508