Here's the simplest way I can think of to describe the problem.
Using the classic posts, authors and comments I need to query for an authors posts and any comments (there may be zero to many comments) for a specific author. Database is postgressql 9.2 and Rails 4.0.
The query should come out something like (this isn't valid sql, need to show that author_id needs to be dynamic):
SELECT *
FROM POSTS
JOIN AUTHORS ON posts.author_id = authors.id