Halloc,,.select * from Queries where Id in (@Ids1) 

Halloc,,.select * from Queries where Id in (@Ids1)