Fix criteria being interpreted as IDENT instead of QUERY