Index: temp/trunk/html/admin/batch/daily.php
===================================================================
--- temp/trunk/html/admin/batch/daily.php	(revision 6965)
+++ temp/trunk/html/admin/batch/daily.php	(revision 6966)
@@ -259,5 +259,5 @@
 	    if($i < $age_loop) {
 	        $end_age = $start_age+9;
-	        $where = $where . " AND order_birth < cast('$end_date' as date) -interval '$start_age' year'";
+	        $where = $where . " AND order_birth < cast('$end_date' as date) -interval '$start_age' year";
 	    }else{
 	        $where = $base_where . " AND order_birth < cast('$end_date' as date) -interval '$start_age' year";
@@ -301,5 +301,5 @@
 	    if($i < $age_loop) {
 	        $end_age = $start_age+9;
-	        $where = $where . " AND order_birth < cast('$end_date' as date) -interval '$start_age' year'";
+	        $where = $where . " AND order_birth < cast('$end_date' as date) -interval '$start_age' year";
 	    }else{
 	        $where = $base_where . " AND order_birth < cast('$end_date' as date) -interval '$start_age' year";
