title: Why is Wordpress $wpdb->query() response 1 when the rows returned is 0
body: <p>I'm doing the following in a custom function:</p>
  
  <pre><code>    $exists = $wpdb-&gt;query($wpdb-&gt;prepare('
      SELECT COUNT(*)
      FROM wp_%d_gdsr_data_article
      WHERE post_id = %d
  
  ', $blog_id, $post_id));
  </code></pre>
  
  <p>$exists evaluates to 1 even if no rows are returned by the query. Also, var_dump($wpdb->queries) yields a NULL. Anyone know what is going on here?</p>
  
  <p>thanks,</p>