Index: temp/trunk/html/admin/batch/daily.php
===================================================================
--- temp/trunk/html/admin/batch/daily.php	(revision 4982)
+++ temp/trunk/html/admin/batch/daily.php	(revision 4983)
@@ -238,5 +238,5 @@
 		$where = $base_where . " AND order_birth >= cast('$start_date' as date)";
 		$start_age = $i * 10;
-		if($i <= $age_loop) {
+		if($i < $age_loop) {
 			$end_age = $start_age+9;
 			$where = $where . " AND order_birth <= cast('$end_date' as date)";
