While I want to get UNIX_TIMESTAMP() in the query this is what happens:
Code:
$this->db->where(array('is_active' => 1, 'time' => 'UNIX_TIMESTAMP()'));
$this->db->update('table', array('is_active' => 0));
Result:
UPDATE `table` SET `is_active` = 0 WHERE `is_active` = 1 AND `time` = 'UNIX_TIMESTAMP()'
I want UNIX_TIMESTAMP()
without quotes and not like 'UNIX_TIMESTAMP()'