nested join chaining in hasAndBelongsToMany rels