Error: 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 '?outputformat=msxml) ORDER BY publishing_year DESC, publishing_month DESC, titl' at line 1 SELECT * FROM main_view_visible WHERE main_id IN (436?outputformat=msxml) ORDER BY publishing_year DESC, publishing_month DESC, title_de ASC