rails/rails — pull request #3412 by zhengjia (2011-10-24 01:09:17+00:00)
Title: Fixed find_by_sql with join statement

As shown in the follow example, the results all have id 1. This fixes the problem by removing duplicate id columns from join tables

```
ruby-1.9.2-p290 :024 > Post.find_by_sql("SELECT * from posts JOIN users ON posts.user_id = users.id")
Post Load (0.3ms) SELECT * from posts JOIN users ON posts.user_id = users.id
=> [#, #]
```