title: Select post without category in wordpress
body: <p>I have this script that select a list from a specific category:</p>
  
  <pre><code>SELECT wp_posts.* 
    FROM wp_posts
         LEFT JOIN wp_term_relationships 
                   ON wp_posts.ID=wp_term_relationships.object_id 
         LEFT JOIN wp_term_taxonomy 
                   ON wp_term_taxonomy.term_taxonomy_id = wp_term_relationships.term_taxonomy_id 
         LEFT JOIN wp_terms 
                   ON wp_terms.term_id = wp_term_taxonomy.term_id
   WHERE wp_posts.post_type = 'post' 
     AND wp_posts.post_status = 'publish' 
     AND (
              wp_term_taxonomy.taxonomy = 'category' 
          AND wp_term_taxonomy.term_id = wp_terms.term_id 
          AND wp_terms.name = '$category' 
         )
  </code></pre>
  
  <p>How do I select posts that are not categorized? I tried <code>$category = ''</code> and got 0 rows because <code>wp_terms.name =''</code> does not have a field.</p>