where_operator
Refactor the `where_operator` method so we can use it to avoid raw SQL in more places.