In your theme files, there is a file named template_portfolio.php. Search for:
It will be right around line 98. If the $query_string is still there, try removing it then saving the file. If you downloaded it with ftp or any other means, make sure to re-upload it to your theme files.