I have Product model and it has many categories with a has_many :through association
In my controller I am trying to do a find by with categories.category but it comes up with a mysql error.
Model.find(:all, :conditions => ['categories.category_id = ?', @category.id ])
Ideas?