Reference table when using condition on relation.