Hi ha hagut un error en select * from noticies where id_subcategoria= order by data desc Invalid query: 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 data desc' at line 1