I want to display the thumbnail of a post. If the user clicks the thumbnail he gets directed to that post. But when clicking it I get a 403 ERROR. I'm new to php what is wrong?
PHP
<?php
query_posts('cat=5');
while (have_posts()) : the_post();
the_title();
echo '<a href="<?php the_permalink();?>">';
the_post_thumbnail();
echo '</a>';
endwhile;
?>