FIX: where("association_id", id) leads to invalid statement in postgres. where should just be given a hash.