All:
$this->db->escape() has issues dealing with common databases functions such as
update table set quantity=quantity+1
Or
update table set updatetime=NOW()
So I modified the function slightly “DB_driver.php” line 687
/**
* "Smart" Escape String
*
* Escapes data based on type
* Sets boolean and null types
*
* @access public
* @param string
* @return integer
*/
function escape($str)
{
if (is_numeric($str) === false && stristr($str,'NOW()') === false) {
$str = $str = "'".$this->escape_str($str)."'";
}
return $str;
}