Find AR::Relations in build_where, append binds

Possible fix for #272.