Added support for passing an object to .where()