Index: trunk/ippTools/share/difftool_pendingcleanuprun.sql
===================================================================
--- trunk/ippTools/share/difftool_pendingcleanuprun.sql	(revision 25800)
+++ trunk/ippTools/share/difftool_pendingcleanuprun.sql	(revision 26927)
@@ -25,4 +25,5 @@
 	    USING(exp_id)
 	WHERE
+	@INNERCONSTRAINT@
 	    (diffRun.state = 'goto_cleaned' OR 
              diffRun.state = 'goto_scrubbed' OR 
@@ -52,4 +53,5 @@
 	    USING(exp_id)
 	WHERE
+	@INNERCONSTRAINT@
 	    (diffRun.state = 'goto_cleaned' OR 
              diffRun.state = 'goto_scrubbed' OR 
@@ -64,6 +66,6 @@
 	JOIN diffInputSkyfile
 	    USING(diff_id)
-	JOIN stackSumSkyfile
-	    ON  diffInputSkyfile.stack1 = stackSumSkyfile.stack_id
+--	JOIN stackSumSkyfile
+--	    ON  diffInputSkyfile.stack1 = stackSumSkyfile.stack_id
 	JOIN stackInputSkyfile
 	    ON diffInputSkyfile.stack1 = stackInputSkyfile.stack_id
@@ -79,4 +81,5 @@
 	    USING(exp_id)
 	WHERE
+	@INNERCONSTRAINT@
 	    (diffRun.state = 'goto_cleaned' OR 
              diffRun.state = 'goto_scrubbed' OR 
@@ -91,6 +94,6 @@
 	JOIN diffInputSkyfile
 	    USING(diff_id)
-	JOIN stackSumSkyfile
-	    ON  diffInputSkyfile.stack2 = stackSumSkyfile.stack_id
+--	JOIN stackSumSkyfile
+--	    ON  diffInputSkyfile.stack2 = stackSumSkyfile.stack_id
 	JOIN stackInputSkyfile
 	    ON diffInputSkyfile.stack2 = stackInputSkyfile.stack_id
@@ -106,4 +109,5 @@
 	    USING(exp_id)
 	WHERE
+	@INNERCONSTRAINT@
 	    (diffRun.state = 'goto_cleaned' OR 
              diffRun.state = 'goto_scrubbed' OR 
