Index: temp/trunk/data/class/SC_Query.php
===================================================================
--- temp/trunk/data/class/SC_Query.php	(revision 4928)
+++ temp/trunk/data/class/SC_Query.php	(revision 4929)
@@ -350,5 +350,6 @@
 			$sql = "SELECT NEXTVAL('$seqtable')";
 		}else if (DB_TYPE == "mysql") {
-			$sql = mysql_insert_id();
+			$sql = "SELECT last_insert_id();";
+			return mysql_insert_id();
 		}
 		$ret = $this->conn->getOne($sql);
