Removed "rand()" as a listed option from orderby in the Active Record, as it was MySQL only.
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index d79a068..82d5b63 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -405,7 +405,7 @@
{
if (trim($direction) != '')
{
- $direction = (in_array(strtoupper(trim($direction)), array('ASC', 'DESC', 'RAND()'), TRUE)) ? ' '.$direction : ' ASC';
+ $direction = (in_array(strtoupper(trim($direction)), array('ASC', 'DESC'), TRUE)) ? ' '.$direction : ' ASC';
}
$this->ar_orderby[] = $orderby.$direction;