Index: branches/pap/ippTools/share/stacktool_tosum.sql
===================================================================
--- branches/pap/ippTools/share/stacktool_tosum.sql	(revision 27708)
+++ branches/pap/ippTools/share/stacktool_tosum.sql	(revision 28003)
@@ -6,5 +6,6 @@
     stackRun.reduction,
     stackRun.label,
-    stackRun.state
+    stackRun.state,
+    stackSumSkyfile.path_base
 FROM stackRun
 JOIN stackInputSkyfile USING(stack_id)
@@ -16,3 +17,3 @@
     -- WHERE hook %s
 GROUP BY stack_id
-HAVING COUNT(warpRun.state = 'full') = COUNT(stackInputSkyfile.warp_id)
+HAVING SUM(IF(warpRun.state = 'full', 1, 0)) = COUNT(stackInputSkyfile.warp_id)
