title: How to get post using a specific category
body: <p>I'm just getting back into Wordpress and php after a few years away. I'm pretty ignorant when it comes to php syntax so making lots of mistakes. </p>
  
  <p>I need to display a single post on a page, it's title and contents, and it needs to be specific to a category that I've created. </p>
  
  <p>I grabbed this of the web and tried to change it, but I can't get it to work. </p>
  
  <pre><code>&lt;?php query_posts('category_name=qaadrant&amp;showposts=1');
      while (have_posts()) : the_post();
        // do whatever you want
      ?&gt;
      &lt;h2&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" title="Permanent Link to &lt;?php the_title(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
  
      &lt;p&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" title="Permanent Link to &lt;?php the_content(); ?&gt;"&gt;&lt;?php the_content(); ?&gt;&lt;/a&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Any help much appreciate. Niall </p>