Added the Where to clause in query

added the where to clause in query