Advanced Search - Related Field Bug: Get relate/link patched 'where' and 'join'