title: Wordpress custom database table not recognized
body: <p>I've manually created a custom table, <code>sdp_invites</code>, for my wordpress (v3.4.2) site. I've done this many times in the past, but now I'm unable to use any of the <code>$wpdb</code> methods:</p>
  
  <pre><code>global $wpdb;
  global $current_user;
  
  $query = "INSERT INTO spd_invites (sender_id,receiver_id,job_id,job_title,job_slug,employer_id) VALUES ('{$current_user-&gt;ID}','{$resume-&gt;user_id}','{$job_id}','{$job_title}','{$job_slug}','{$employer_id}')";
  
  $wpdb-&gt;get_results($query); //ERROR...
  $wpdb-&gt;query($query); //ERROR...
  </code></pre>
  
  <p>Here's the error:</p>
  
  <pre><code>WordPress database error: [Table 'sow2.spd_invites' doesn't exist]
  INSERT INTO spd_invites (sender_id,receiver_id,job_id,job_title,job_slug,employer_id) VALUES ('799','809','6','Professional Basket Weaver','professional-basket-weaver','5')
  </code></pre>
  
  <p>I know the table exists because I manually created it and I can see it in phpMyAdmin. Any idea why I'm getting this error?</p>
  
  <p>UPDATE:
  The WP user is called "root" (on my local dev setup). Here's the privileges listed in phpMyAdmin:</p>
  
  <pre><code>User    Host             Type    Privileges  Grant  Action
  root    localhost    global  ALL PRIVILEGES  Yes    
  </code></pre>
  
  <p>UPDATE2:
  Just to rule out a bunch of possibilities, I tried a simpler query: <code>"SELECT * FROM sdp_invites"</code>. This throws the same error. When I change to a wp core table, it works without error <code>"SELECT * FROM sdp_invites"</code></p>