Adding New Where Cluse to Query function