I have found that Rails doesn't works well when mixing joins and
includes. For example I have the following models: Event, Attendance
class Event < ActiveRecord::Base
# User that creates the event
:select => "id, name, lastname",
:foreign_key => "user_id",
:class_name => "User"
has_many :users, :through => :attendances