Index: trunk/ippMonitor/def/simplePlotCamImage.d
===================================================================
--- trunk/ippMonitor/def/simplePlotCamImage.d	(revision 34431)
+++ trunk/ippMonitor/def/simplePlotCamImage.d	(revision 40882)
@@ -1,3 +1,3 @@
-TABLE camProcessedExp, camRun, chipRun, rawExp
+TABLE camProcessedExp JOIN camRun USING (cam_id) JOIN chipRun USING (chip_id) JOIN rawExp USING (exp_id)
 TITLE New sky plot - cam
 FILE  simplePlotCamImage.php
@@ -5,7 +5,4 @@
 
 WHERE camRun.state != 'new' 
-WHERE chipRun.exp_id = rawExp.exp_id
-WHERE camRun.chip_id = chipRun.chip_id
-WHERE camProcessedExp.cam_id = camRun.cam_id
 
 #    field                size  format  name           show     link to         extras
