Index: /temp/trunk/html/admin/batch/daily.php
===================================================================
--- /temp/trunk/html/admin/batch/daily.php	(revision 2968)
+++ /temp/trunk/html/admin/batch/daily.php	(revision 2969)
@@ -39,5 +39,5 @@
 	$objQuery->delete("dtb_order_detail", $where);
 	
-	$last_batch = $objQuery->max("create_date", "dtb_bat_order_daily");
+	$last_batch = $objQuery->max("dtb_bat_order_daily", "create_date");
 
 	print(strtotime($last_batch));
