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 'maxprice = '100000' AND (listing_office_id = '10') ORDER BY price_current DESC' at line 2