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 = '20000000' AND (listing_agent_id = '2126') ORDER BY price_current AS' at line 2