Moved binding from relation to build_where