Königlich Preußischer Staats-Anzeiger 1854, issue

Error: 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 'and jahr = 1854' at line 1 query failed