has_many :through and has_one association

I would suggest fully qualifying the :order fields as one thing to try. I do not see anything obvious that is wrong with the models.

Can you post the migrations as well? It may be a miss-match between the models and the tables.

Michael