Index: trunk/ippTools/share/camtool_find_pendingimfile.sql
===================================================================
--- trunk/ippTools/share/camtool_find_pendingimfile.sql	(revision 32593)
+++ trunk/ippTools/share/camtool_find_pendingimfile.sql	(revision 32594)
@@ -13,7 +13,9 @@
     USING (chip_id)
 JOIN chipProcessedImfile
-    USING (chip_id)
+    USING (chip_id, exp_id)
 JOIN rawExp
-  ON chipProcessedImfile.exp_id = rawExp.exp_id
+    USING(exp_id)
+JOIN rawImfile
+    USING(exp_id, class_id, exp_time)
 LEFT JOIN camProcessedExp
     USING(cam_id)
@@ -22,2 +24,3 @@
 WHERE
     camMask.label IS NULL
+    AND rawImfile.ignored = 0
