Parse error: syntax error, unexpected end of file

I’m following a certain tutorial on how to display post using a filter dropdown.

I’m getting a “Parse error: syntax error, unexpected end of file” whenever i press the search button to retrieve the post.


    if (($_GET['location'] != -1) && ($_GET['price'] != -1)):
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
          'orderby' => 'date',
          'order' => 'DESC',
          'paged' => $paged,
          'posts_per_page' => 6,
          'category__and' => array(

I’m almost finished and i think this is the only problem

Did you forget the last key=>value pair of your query_posts array?

Hmm what do you mean by last key?

The query_posts array has comma suggesting another to follow, but instead there’s a closing parenthesis.