#Bug fix 4271

The query section did not work for two **criterias** due to inclusion of a local variable in class function. 
Now it works perfectly!