An error occurred!Can't execute statement: 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 worldcities.regionid = '' and worldcities.countryid = '' and worldregions...' at line 1

SQL: select * from categories where catid = '2' and categories.catid != 150 order by category