title: Wordpress wpdb->get_results :: can't fetch data
body: <p>I've wasted too much time trying to figure this out. I don't understand why there's nothing showing up. It's as if the row is empty, but print_r($results) shows otherwise.
  This code is not echoing table_color_header value. </p>
  
  <pre><code>global $wpdb;
  
  $table_name_settings = $wpdb-&gt;prefix . 'admin_user_message_settings';
  
  $results = $wpdb-&gt;get_results("SELECT * FROM $table_name_settings");
  
  print_r($results);
  foreach($results as $data)
  {
      echo $data-&gt;table_color_header;
  }
  </code></pre>