prevent ambiguous field in user-defined where clause