I need to select all posts from database without fetching some categories.
For example I fetch posts with this code:
$featuredPosts = new WP_Query();
$featuredPosts->query('showposts=40');
So, now, how can i remove categories with id of: 22, 23 and 24?