Make it more simple. I'll show you example using where clause using two variable. Do it like this:
@Query("SELECT * FROM Student WHERE stdName1= :myname AND stdId1=:myid")
List fetchAllData(String myname,int myid);
stdName1 and stdId1 are column names