I used the code below and also utilized a helicon rewritre regular expression.
<?php
$args1 = array(
'posts_per_page' => 1,
'post_type' => 'post',
'meta_query' => array(
array(
'key' => 'nameofqueryvar',
'value' => $_GET["nameofqueryvar"],
'compare' => '='
)
)
);
global $myposts;
if (is_page('Story')){
$myposts = get_posts($args1); }
?>
<?php foreach ( $myposts as $post ) : setup_postdata( $post ); ?>
the_content();
?>