1064: SELECT count(*) as total_row FROM news INNER JOIN news_country nc ON news.id=nc.news_id where nc.c_id = AND news.tags like '%lenovo%'
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 news.tags like '%lenovo%'' at line 5