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.