Fixed an AR_caching error where it wasn't tracking table aliases (#3463)
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index 263172a..9035842 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -289,7 +289,7 @@
$this->ar_from[] = $this->_protect_identifiers($this->_track_aliases($val));
if ($this->ar_caching === TRUE)
{
- $this->ar_cache_from[] = $this->_protect_identifiers($val);
+ $this->ar_cache_from[] = $this->_protect_identifiers($this->_track_aliases($val));
}
}