<?php
$my_query = new WP_Query('showposts=5&cat=1');
while ($my_query->have_posts()):
$my_query->the_post();
$do_not_duplicate = $post->ID;?>
<a href="<?php the_permalink() ?>"<?php the_title(); ?></a></br>
<?php endwhile; ?>