#946 Added in binding of where clause