query error id not in