Index: /trunk/MagicSoft/Mars/datacenter/macros/buildsequenceentries.C
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/macros/buildsequenceentries.C	(revision 8190)
+++ /trunk/MagicSoft/Mars/datacenter/macros/buildsequenceentries.C	(revision 8191)
@@ -294,6 +294,6 @@
         query += " MIN(fZenithDistance), MAX(fZenithDistance), ";
         query += " MIN(fAzimuth), MAX(fAzimuth), ";
-        query += " MIN(if(fRunStart=0,NULL,fRunStart), ";
-        query += " MAX(if(fRunStop=0,NULL,fRunStop), ";
+        query += " MIN(if(fRunStart=0,NULL,fRunStart)), ";
+        query += " MAX(if(fRunStop=0,NULL,fRunStop)), ";
         query += " ELT(MAX(FIELD(fLightConditionsKEY, 1, 2, 7, 5, 8)), 1, 2, 7, 5, 8) ";
         query += " FROM RunData WHERE ";
