Index: trunk/ippMonitor/def/chipPendingExp.d
===================================================================
--- trunk/ippMonitor/def/chipPendingExp.d	(revision 27892)
+++ trunk/ippMonitor/def/chipPendingExp.d	(revision 40882)
@@ -1,3 +1,3 @@
-TABLE chipRun, rawExp
+TABLE chipRun JOIN rawExp using (exp_id)
 TITLE chip Pending Exposures
 FILE  chipPendingExp.php
@@ -6,5 +6,7 @@
 # limit this table to non-OBJECT types of images
 WHERE chipRun.state = 'new'
-WHERE chipRun.exp_id = rawExp.exp_id
+
+RESTRICT_COUNT AND rawExp.dateobs >= CURDATE()
+UNRESTRICTED AND rawExp.dateobs >= CURDATE()
 
 ARGS  ARG1  rawImfile.exp_id=$rawExp.exp_id
