jinzhu/gorm — pull request #90 by xdmnl (2014-04-10 14:38:38+00:00)
Title: Fix ORDER BY "id" is ambiguous

When trying to do a First() or Last() with a Joins(), we get the error `ORDER BY "id" is ambiguous`.
The PR includes `scope.TableName()` in the order statement to fix this issue.