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