# Re: name\_scope and has\_many associations

**URL:** <https://www.ruby-forum.com/t/re-name-scope-and-has-many-associations/144923>\
**Category:** Rails\
**Created:** [August 4, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/re-name-scope-and-has-many-associations/144923 "2008-08-04T12:55:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcheung](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Post date:** [August 4, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/re-name-scope-and-has-many-associations/144923/1 "2008-08-04T12:55:56Z")

</div>

> However antigua.people.high\_earners returns nil. Why is this?

I wouldn’t be surprised if it’s because of the finder SQL. Since the  
SQL could be anything adding the conditions could be non obvious. Have  
you tried doing away with the finder SQL and using the :select  
and :joins options?

Fred
