Fix issue with a where object with more than one member