Hello guy's i have this query
SELECT distinct blog.*,(select count(blog_id) from blog_comment where blog_comment.blog_id=blog.id) as comment FROM blog Left JOIN blog_comment ON blog.id = blog_comment.blog_id
I want this query in CI format.this query having subquery
in his column
so I m facing problem to convert this query in to CI format i don't to how to do this please help