Index: trunk/ippMonitor/def/detInputExp.d
===================================================================
--- trunk/ippMonitor/def/detInputExp.d	(revision 39498)
+++ trunk/ippMonitor/def/detInputExp.d	(revision 40882)
@@ -1,3 +1,3 @@
-TABLE detInputExp, rawExp
+TABLE detInputExp JOIN rawExp USING (exp_id)
 TITLE detInputExp
 FILE  detInputExp.php
@@ -5,5 +5,7 @@
 
 # limit this table to non-OBJECT types of images
-WHERE detInputExp.exp_id = rawExp.exp_id
+
+RESTRICT_COUNT WHERE dateobs >= CURDATE()
+UNRESTRICTED WHERE dateobs >= CURDATE()
 
 ARGS  ARG1  rawImfile.exp_id=$detInputExp.exp_id
