Index: trunk/ippMonitor/def/distRun.d
===================================================================
--- trunk/ippMonitor/def/distRun.d	(revision 35299)
+++ trunk/ippMonitor/def/distRun.d	(revision 40882)
@@ -1,3 +1,3 @@
-TABLE distRun, distComponent
+TABLE distRun JOIN distComponent USING (dist_id)
 TITLE Distribution Runs
 FILE  distRun.php
@@ -6,7 +6,6 @@
 # the following WHERE clauses are added to all queries joined by AND
 
-WHERE distRun.dist_id = distComponent.dist_id
-UNRESTRICTED AND 0=1
-RESTRICT_COUNT AND 0>1
+UNRESTRICTED WHERE distRun.time_stamp >= CURDATE()
+RESTRICT_COUNT WHERE distRun.time_stamp >= CURDATE()
 
 #     field                   size  format  name         show    link to                  extras
