title: Wordpress $wpdb->get_results and num_rows
body: <p>I'm using the following code:</p>
  
  <pre><code>                    $wpdb-&gt;get_results("
                          SELECT * FROM " . $wpdb-&gt;prefix . "product_order 
                              WHERE 
                              rel = '" . $post["id"] . "' AND 
                              `range` = '" . $range . "' AND 
                              category = '" . $range . "'
                      "); 
  
                      echo $wpdb-&gt;num_rows;
  </code></pre>
  
  <p>num_rows returns 1 even though there is no rows in the database?
  Any ideas?</p>
  
  <p>The variables I am putting in look fine. so it should be querying correctly.</p>