I want to get latest two posts. I m trying to use following query, but for some strange reasons it is returning me one extra post (total 3 posts instead of 2). Similarly if i put 3 in the query, it will return 4 posts. Why this is happening and how can I fix it? Thanks.
<?php query_posts( posts_per_page=2 ); ?>
<?php if( have_posts() ) : while( have_posts() ) : the_post(); ?>
<?php the_title(); ?>
<?php endwhile; endif;?>
<?php wp_reset_query();?>