Warning: Illegal string offset 'id' in /var/www/vhosts/mallorcapropertyguide.co.uk/httpdocs/controllers/documentoController.php on line 5 Notice: Uninitialized string offset: 0 in /var/www/vhosts/mallorcapropertyguide.co.uk/httpdocs/controllers/documentoController.php on line 5 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: SELECT * FROM documentos_txt WHERE documento_id = ORDER BY id ASC