Can someone tell me if this query is bad for my website or if it's okay to use? :-)
<?php
$posts = Self::query()
->columns(array('Models\BlogsPosts.id', 'COUNT(DISTINCT comments.id) as comments', 'title', 'fullurl as url', 'image', 'intro', 'content', 'Models\BlogsPosts.date'))
->leftJoin('Models\BlogsPostsComments', 'comments.postid = Models\BlogsPosts.id', 'comments')
->where($sql, $conditions)
->orderBy('Models\BlogsPosts.id DESC')
->groupBy('Models\BlogsPosts.id')
->limit($limit, $offset)
->execute();