Index: branches/dev/html/admin/batch/daily.php
===================================================================
--- branches/dev/html/admin/batch/daily.php	(revision 17)
+++ branches/dev/html/admin/batch/daily.php	(revision 154)
@@ -157,4 +157,6 @@
 	$objQuery = new SC_Query();
 	$arrRet = $objQuery->getall($sql);	
+	
+	sfprintr($objQuery->getlastquery(false));
 		
 	$sqlval = $arrRet[0];
