$sql = "update " . $this->db->dbprefix('languages') . " set "; $sql .= "active = active * -1 where id= ?"; return $this->db->query($sql, $language_id);
$this->db->set('active', 'active * -1', FALSE); $this->db->where('id', $language_id); $this->db->update('languages');