I need to query all posts from a specific user and include all comments and the user who belongs to the comment.
class User < ... has_many :posts has_many
Try
@posts = current_user.posts.includes( :comments => :user)
Read more about it here