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 'where CAT_ID = '' and shops > 0 order by populair DESC limit 3' at line 1