So when i do

```
<?php echo $_GET['id']; ?>

```

i get a result : `1`

But when i use it for my query i get the error

```
This discussion does not exists.

```

I copy pasted the code a bit because the rest of it is not needed in this question. 
This is my code :

```
if(isset($_GET['id']))
{
    $id = $_GET['id'];
    //We get the title and the narators of the discussion
    $req1 = $db->prepare('select title, user1, user2 from pm where id="'.$id.'" and id2="1"');
    $req1->execute();
    $dn1 = $req1->fetch();
    echo $dn1['title'];

    {
       echo '<div class="message">This discussion does not exists.</div>';
    }
}

```