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 `street`='8929' and `housenumber` IS NULL and `archive`='0' and `livingroom' at line 1