Prepare failed: select category, category_2nd from business where reviews >= and paid=1 and category='realtor' (1064) 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 paid=1 and category='realtor'' at line 1