Query against sample when generating invalid id list

Signed-off-by: Don Naegely <naegelyd@gmail.com>