I\'m trying to update a single record with the active record of codeigniter and it still fails.
$data = array(\'status\' => 1); $this->db->where(\'
Move the limit before the update which should be always called last:
$this->db->limit(1); $this->db->update('example', $data);