title: issue with codeIgniter fetching result
body: <p>I'm trying to display zipcode which only logged in user's area.</p>
  
  <p>To get user's area, <code>get_zipcode()</code> calls <code>get_area_name()</code>.</p>
  
  <p>But, there is <code>500 error</code> if I get value from <code>get_area_name()</code>;</p>
  
  <p>If I commented out <code>get_area_name()</code> and put harded coded value <code>$area ="ny"</code>, it works.</p>
  
  <p>I think there is some issue with <code>get_area_name()</code>.</p>
  
  <p>table for "<code>area</code>" is following</p>
  
  <pre class="lang-sql prettyprint-override"><code>CREATE TABLE IF NOT EXISTS `wn_area` (
    `area_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `area` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    PRIMARY KEY (`area_id`)
  ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=165 ;
  </code></pre>
  
  <p>Function</p>
  
  <pre><code>    public function get_zipcode($area_id)
      {
          $this-&gt;db-&gt;select("*");
  
          $this-&gt;db-&gt;from("zipcode");
  
          if ($area_id != "" )
          {
              $ar_area_ids = array(1,2,3,4,5,6,7,8);
  
              //$area = get_area_name($area_id);
              $area = "ny";
  
              if( in_array($area_id, $ar_area_ids) ){
                  $this-&gt;db-&gt;like('sido', $area); 
              }else {
                  $this-&gt;db-&gt;like('gugun', $area);
              }
  
          }else{  
  
              $this-&gt;db-&gt;like("sido", 'ny'); 
              $this-&gt;db-&gt;limit("10000");
          }
  
  
          $this-&gt;db-&gt;order_by("zipcode_id");
  
          $query = $this-&gt;db-&gt;get();
  
          return ($query-&gt;num_rows() &gt; 0) ? $query-&gt;result() : FALSE;
      }
  
    public function get_area_name($area_id)
      {
          $this-&gt;db-&gt;select("*");
  
          $this-&gt;db-&gt;from("area");
  
       $this-&gt;db-&gt;where("area_id", $area_id);
  
          $query = $this-&gt;db-&gt;get();
  
          return $query-&gt;row()-&gt;area;
  
      }
  </code></pre>