Index: trunk/ippTools/share/disttool_pending_raw.sql
===================================================================
--- trunk/ippTools/share/disttool_pending_raw.sql	(revision 32703)
+++ trunk/ippTools/share/disttool_pending_raw.sql	(revision 32710)
@@ -43,4 +43,5 @@
     -- AND (rawExp.magicked OR distRun.no_magic)
     AND rawExp.magicked
+    AND rawImfile.ignored = 0
     -- need to have magicked the chip image which makes the camera mask
     AND chipProcessedImfile.magicked != 0
@@ -86,4 +87,5 @@
     AND distComponent.dist_id IS NULL
     AND (distRun.no_magic)
+    AND rawImfile.ignored = 0
     AND (Label.active OR Label.active IS NULL)
 UNION
@@ -131,4 +133,5 @@
     AND chipProcessedImfile.magicked != 0
     AND camRun.magicked > 0 
+    AND rawImfile.ignored = 0
     AND (Label.active OR Label.active IS NULL)
 UNION
Index: trunk/ippTools/share/disttool_toadvance.sql
===================================================================
--- trunk/ippTools/share/disttool_toadvance.sql	(revision 32703)
+++ trunk/ippTools/share/disttool_toadvance.sql	(revision 32710)
@@ -26,4 +26,5 @@
         AND distRun.fault = 0
         AND distRun.stage = 'raw'
+        AND rawImfile.ignored = 0
     GROUP BY
         distRun.dist_id,
