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 'Aliermont') OR ((adr_level='6' OR adr_level='7') AND city_psrl='Saint-Nicolas-' at line 2