I'm trying to get specific post to display in a single.php page, however for some reason I get all posts displayed. I'm not sure if I am getting post id correctly, but here is how I do it at the moment:

```
    <?php
    $post_id = (int) $_GET['p'];
    query_posts('p=' . $post_id);
    while(have_posts()) 
    { 
        $this_page = the_post();
        echo the_content();
    } 
    ?>

```

It should only display post with one id which is stored in $post\_id variable, but for some reason it is getting all of them ;/