orderby fix
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index 3cc65af..c899b7f 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -749,7 +749,8 @@
$direction = (in_array(strtoupper(trim($direction)), array('ASC', 'DESC'), TRUE)) ? ' '.$direction : ' ASC';
}
- $this->ar_orderby[] = $this->_protect_identifiers($orderby).$direction;
+ $this->ar_orderby[] = $this->_protect_identifiers($orderby, TRUE).$direction;
+
return $this;
}