title: wp_query behaves strangely
body: <p>I have a static frontpage and the blog part pointed to a page (with the link mylocalhost/news/) and a custom template called news (<a href="http://pastie.org/5109324" rel="nofollow">code</a>) </p>
  
  <p>a custom permalink structure: <code>/%category%/%postname%/</code></p>
  
  <p>going here gives me this weird sql statement: </p>
  
  <pre><code>SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND (wp_posts.ID = '1829') AND wp_posts.post_type = 'page' ORDER BY wp_posts.post_date DESC
  </code></pre>
  
  <p>Obviously this will not get the posts I'm looking for. Why is this?  </p>