Implement _compile_order_by()
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 43ea100..a327f4a 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -1128,8 +1128,8 @@
}
return 'UPDATE '.$table.' SET '.implode(', ', $valstr)
- .$this->_compile_where()
- .(empty($this->qb_orderby) ? '' : ' ORDER BY '.implode(', ', $this->qb_orderby))
+ .$this->_compile_wh('qb_where')
+ .$this->_compile_order_by()
.($this->qb_limit ? ' LIMIT '.$this->qb_limit : '');
}