# Find question

**URL:** <https://www.ruby-forum.com/t/find-question/92467>\
**Category:** Rails\
**Created:** [April 19, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/find-question/92467 "2007-04-19T20:31:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [April 19, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/find-question/92467/1 "2007-04-19T20:31:49Z")

</div>

Hello All,

Quick find question for you, I have a comments, users and a friends  
table.

The user model has\_many :friends, :through =\> :friendships

How can I include the friends comments in a find? (I know the below does  
not work, it just pulls up the @user’s comments) but if i substitute in  
([@user, 4, … It works fine pulling in the @user.id’s comments and the  
user who’s ID is 4 in as well.

@comments = Comment.find\_all\_by\_user\_id([@user, @user.friends],  
:include =\>  
[:user,:method\_type],  
:order =\> “comments.id DESC”,  
:limit =\> “10”)

Thank you in advance,

- John
