Added association while building query.