Index: trunk/ippTools/share/disttool_definebyquery_select.sql
===================================================================
--- trunk/ippTools/share/disttool_definebyquery_select.sql	(revision 23394)
+++ trunk/ippTools/share/disttool_definebyquery_select.sql	(revision 23566)
@@ -20,9 +20,8 @@
     WHERE distTarget.state = 'enabled'
         AND rcInterest.state = 'enabled'
-        AND chipRun.state = 'full'       -- XXX: we need a completed chip stage magicDSRun because we
+        AND chipRun.state = 'full'       -- Note: we need a completed chip stage magicDSRun because we
                                          -- need the mask file to NAN masked pixels
         -- to support cameras that don't need magic disttool adds the magicked restriction 
         -- \nAND rawExp.magicked AND chipRun.magicked here:
-        AND rawExp.magicked AND chipRun.magicked
         -- raw magicked HOOK %s
         AND distRun.dist_id IS NULL      -- no existing distRun 
@@ -46,5 +45,5 @@
             -- If camera requires files to be magicked before distibution
             -- the following gets added by disttool
-            -- AND chipRun.magicked 
+            AND chipRun.magicked 
             -- chip magicked HOOK %s
            ) 
