Fix query in oldest_idlexact service.