select a.*,b.ename,b.flag from b2bbuilder_buy a left join b2bbuilder_country b on a.country=b.id where catid= and a.id!=70 limit 0,10You 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 a.id!=70 limit 0,10' at line 1