title: Wordpress Get Multiple Posts from Multiple Categories with one query
body: <p>Using wordpress for a client (I wouldn't over wise).</p>
  
  <p>On their home page I want to get the latest 4 posts for each of 4 different categories, I then want to get 3 additional posts that are latest from any category and not currently used above, followed by 5 with the greatest number of page views in the last 2 weeks.</p>
  
  <p>All this is easy but to use wordpress get_posts would require 6 different calls to the database, can this be done with one instead?</p>
  
  <p>The Procedure:</p>
  
  <ul>
  <li>Get 4 latest posts from the category NEWS</li>
  <li>Get 4 latests posts from the category POLITICS that were not already fetched from the first four  (there is a possibility that posts are in both categories)</li>
  <li>Get 4 latest posts from category FEATURES that were not already fetched</li>
  <li>Get 4 latest posts from category COMMENT ... etc..</li>
  <li>Get the 3 latest posts from any category that were not yet fetched</li>
  <li>Get 5 posts with the greatest number of page views (stored in meta data under the name meta-page-views) that were not yet fetched</li>
  </ul>
  
  <p>Is this possible without multiple queries.</p>
  
  <p>Thanks,</p>