creating a page that displays ID info on a template
===

I'm using this php code here to display info from my database using the ID. I created a link on my main page that looks like this. 

    <h1><a href="fetch.php?id=<?php echo $row_getDisplay['post_id']; ?>"><?php echo $row_getDisplay['title']; ?></a></a></h1>

I have so when they click on the title of the article that it takes them to my php which I named fetch.php and the code below is what is in there. I have built this around someone else's work. If for some reason I can get passed the first "if" statement. so I keep getting "you must set a location" I'm fairly new to php so I don't really understand where the code is failing. 

    <?php require_once('Connections/XXXXXX.php'); ?>
    <?php 
    if (isset($HTTP_GET_VARS['id']) ==  false) // check if id has been set 
    { 
    echo "You must select a location"; // if not, display this error 
    exit; 
    } else { 
    $id = $HTTP_GET_VARS['id']; 
    if (is_numeric($id) == false) 
    { 
    echo "You must select a valid location."; 
    } else { 
 
    mysql_select_db($database_XXXXXX, $XXXXXX);
    $query = MYSQL_QUERY("SELECT * FROM news WHERE locationid = 'news.post_id' ");

    if (MYSQL_NUM_ROWS($query) == "1")

    { 
    $fetch = MYSQL_FETCH_ARRAY($query); // set $fetch to have the values from the table 
    echo "Title: " . $fetch['title'] . "<BR>"; // output the info 
    echo "Blog: " . $fetch['blog_entry'] . "<BR>"; // etc... 
    echo "Author: " . $fetch['author'] . "<BR>"; // etc... 
    } else { 
    echo "No match in database found."; // if no match is found, display this error 
    } 
    } 
    }

Any help is appreciated. If you are able to find a better solution for me that would be great. 