title: I fetch data from podio CRM using PHP
body: <p>I fetch data from podio CRM using PHP language and I fetch data for each element via its id as it is found in this function:</p>
  
  <pre><code>public function getContacts($item_id) {
  
      $this-&gt;contactAuth();
  
      $item = \PodioItem::get_by_app_item_id($podio_contact_app_id,$item_id);
        return $item;
  }
  </code></pre>
  
  <p>For example we have the 'Status' we show it like this:</p>
  
  <pre><code>$status = $item-&gt;fields[6]-&gt;values; 
  </code></pre>
  
  <p>Not all elements get it right though it is the same function.</p>
  
  <p>Sometimes : </p>
  
  <pre><code>$status = $item-&gt;fields[6]-&gt;values;
  </code></pre>
  
  <p>and sometimes :</p>
  
  <pre><code>$status = $item-&gt;fields[8]-&gt;values;
  </code></pre>
  
  <p>Can we know what caused the problem?</p>