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