Added backticks around column names in where clause. Bug report number: 4668
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index 3558683..cd61633 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -440,7 +440,7 @@
// exception for "field<=" keys
if ($this->_has_operator($k))
{
- $k = preg_replace("/([A-Za-z_0-9]+)/", $this->_protect_identifiers('$1'), $k);
+ $k = preg_replace("/([A-Za-z_0-9]+)/", $this->_escape_column($this->_protect_identifiers('$1')), $k);
}
else
{