title: Wordpress MySQL result resource is not valid
body: <p>I have <strong>wp_places</strong> custom table and I am getting this when I am printing array:</p>
  
  <pre><code>[0] =&gt; stdClass Object
          (
              [home_location] =&gt; 24
          )
  
  [1] =&gt; stdClass Object
          (
              [home_location] =&gt; 29
          )
  </code></pre>
  
  <p>Now I want to implode value like this way (24,29) but in my code I am getting this error:</p>
  
  <pre><code>&lt;b&gt;Warning&lt;/b&gt;:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource
  </code></pre>
  
  <p><strong>My Code</strong></p>
  
  <pre><code>$getGroupType = $_POST['parent_category'];
      $result = $wpdb-&gt;get_results( "SELECT home_location FROM wp_places WHERE blood_group LIKE '".$getGroupType."%'" );
  
  
      $bgroup = Array();
      while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
          $bgroup[] =  implode(',',$row);
      }
      echo implode(',',$bgroup);
  </code></pre>
  
  <p>Any ideas or suggestions? Thanks.</p>