Index: trunk/ippMonitor/def/histogramZptObsImage.d
===================================================================
--- trunk/ippMonitor/def/histogramZptObsImage.d	(revision 34196)
+++ trunk/ippMonitor/def/histogramZptObsImage.d	(revision 40882)
@@ -1,3 +1,3 @@
-TABLE camRun, chipRun, rawExp, camProcessedExp
+TABLE camRun JOIN chipRun USING (chip_id) JOIN rawExp USING (exp_id) JOIN camProcessedExp USING (cam_id)
 TITLE Histogram of ZptObs
 FILE  histogramZptObsImage.php
@@ -5,7 +5,4 @@
 
 WHERE camRun.state = 'full'
-WHERE camRun.chip_id = chipRun.chip_id
-WHERE chipRun.exp_id = rawExp.exp_id
-WHERE camProcessedExp.cam_id = camRun.cam_id
 WHERE camProcessedExp.fault = 0
 
