First loop, display regular posts unless sticky is selected

Hey everyone,
I need help with with my loop. It was working on my old server but when I moved to a new server, it no longer works. I want the loop to display regular posts unless the sticky option is enable. If it is, then regular posts go to the second loop. Any ideas on how to solve this problem? Any help will be greatly appreciated, including a link.

The code I’m using:

<div class="topstory">
<?php $args = array(
	'posts_per_page' => 1,
	'post__in'  => get_option( 'sticky_posts' ),
	'ignore_sticky_posts' => 1,
	'cat' => 5
);
query_posts( $args );
?>
<?php while (have_posts()) : the_post(); ?>
<?php $displayed = $post->ID;?>

<?php if ( get_post_meta($post->ID, 'bignews', true) ) { ?>
	<div id="post-<?php the_ID(); ?>" class="posts-bigstory">
	<div class="title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></div>
	<?php getImage('1'); ?>
</div>
<?php } elseif (get_post_meta($post->ID, 'cnet', true)) { ?>
	<div id="post-<?php the_ID(); ?>" class="posts-bigstory">
	<div class="title"><a href="<?php
$link = get_post_meta($post->ID, "syndication_permalink", true);
echo $link;
?>"><?php the_title(); ?></a></div>
<a href="<?php
$link = get_post_meta($post->ID, "syndication_permalink", true);
echo $link;
?>"><img src="<?php echo catch_that_image() ?>"></a>
</div>
<?php } elseif (get_post_meta($post->ID, 'breakingnews', true)) { ?>
	<div id="post-<?php the_ID(); ?>" class="posts-breaking">
	<?php getImage('1'); ?>
	<span class="title"><span class="breaking">Developing:</span><span class="link"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></span></span>
	</div>
<?php } elseif (get_post_meta($post->ID, 'cnetbreakingnews', true)) { ?>
	<div id="post-<?php the_ID(); ?>" class="posts-breaking">
	<a href="<?php
$link = get_post_meta($post->ID, "syndication_permalink", true);
echo $link;
?>"><img src="<?php echo catch_that_image() ?>"></a>
	<span class="title"><span class="breaking">Developing:</span><span class="link"><a href="<?php
$link = get_post_meta($post->ID, "syndication_permalink", true);
echo $link;
?>"><?php the_title(); ?></a></span></span>
	</div>
<?php } else { ?>
<div id="post-<?php the_ID(); ?>" class="fposts">
<?php get_the_image( array( 'meta_key' => array( 'Thumbnail', 'thumbnail' ), 'size' => 'thumbnail' ) ); ?>
	<div class="titler">
			<div class="meta-db"><?php
$category = get_the_category();
echo $category[0]->cat_name;
?></div>
			<div class="title-db"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></div>
			<div class="meta">Posted: <?php the_time('l, F j, Y - g:i A') ?> CT</div>
		</div>
		<?php the_excerpt(); ?>
</div>
<?php } ?>
		 <?php endwhile;?>
		 </div>

This is the second loop for the rest:

<ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="#default" class="selected">AltTV news</a></li>
<li><a href="/front/cnet.php" rel="countrycontainer">Tech news</a></li>
</ul>

<div id="countrydivcontainer">
<?php query_posts("showposts=6&cat=5,-1122"); ?>
<?php while (have_posts()) : the_post(); if ($post->ID == $displayed) continue;?>
<div id="post-<?php the_ID(); ?>" class="fposts">
<?php get_the_image( array( 'meta_key' => array( 'Thumbnail', 'thumbnail' ), 'size' => 'thumbnail' ) ); ?>
	<div class="titler">
			<div class="meta-db"><?php
$category = get_the_category();
echo $category[0]->cat_name;
?></div>
			<div class="title-db"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></div>
			<div class="meta">Posted: <?php the_time('l, F j, Y - g:i A') ?> CT</div>
		</div>
		<?php the_excerpt(); ?>
</div>
<?php endwhile;?>
</div>

<script type="text/javascript">

var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()

</script>

</div>

Thanks,
Greg