Index: trunk/ippTools/share/stacktool_pendingcleanuprun.sql
===================================================================
--- trunk/ippTools/share/stacktool_pendingcleanuprun.sql	(revision 19525)
+++ trunk/ippTools/share/stacktool_pendingcleanuprun.sql	(revision 19526)
@@ -1,6 +1,9 @@
--- results in too many output files
--- is the camera needed for this?
--- is the camera unique for this?
-SELECT
+-- results in too many runs                 adding DISTINCT fixes this
+-- is the camera needed for this?           YES I think so that update can define the camera
+-- is the camera unique for this?           YES. Well, sort of.
+--                                          stack_skycell.pl insures that the files
+--                                          we're here to clean come from the same camera so
+--                                          if the camera is not unique we have nothing to do
+SELECT DISTINCT
     stackRun.stack_id,
     rawExp.camera,
