Now throws error if where conditions are invalid