You will not find a simple answer with an SQL group that happens before sorting (since the group is usually intended for aggregate data). Just save the field latest_comment_idin your article, and then attach the comments to latest_comment_id when you find the articles.
, .