Index: temp/trunk/data/class/SC_Query.php
===================================================================
--- temp/trunk/data/class/SC_Query.php	(revision 3413)
+++ temp/trunk/data/class/SC_Query.php	(revision 3677)
@@ -84,4 +84,5 @@
 	function getall($sql, $arrval = array()) {
 		$ret = $this->conn->getAll($sql, $arrval);
+		$this->conn->getlastquery();
 		return $ret;
 	}
