Add custom field and post thumb to loop using $wpdb

Hi there,

I'm for some reason having trouble adding custom fields and a post thumb to a direct database query.

First try:

$querystr = "
    SELECT $wpdb->posts.*,ID, post_title, post_name
    FROM $wpdb->posts
    WHERE $wpdb->posts.post_type = 'images'
    AND $wpdb->posts.post_status = 'publish'
    ORDER BY $wpdb->posts.post_date DESC";

And:

<?php
     $querystr = "
    SELECT $wpdb->posts.*,ID, post_title, post_name
    FROM $wpdb->posts, $wpdb->postmeta
    WHERE $wpdb->posts.post_type = 'images'
    AND $wpdb->posts.post_status = 'publish'
    AND $wpdb->posts.ID = $wpdb->postmeta.post_id
    ORDER BY $wpdb->posts.post_date DESC";

 $pageposts = $wpdb->get_results($querystr, OBJECT);

?>
 <?php if ($pageposts): ?>
  <?php global $post; ?>
  <?php foreach ($pageposts as $post): ?>
    <?php setup_postdata($post); ?>

    <?php the_title(); ?>
    <a href="<?php  the_permalink()  ?>" rel="bookmark"><img  src="<?php  echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php  the_title(); ?>" /></a>
    <?php get_the_post_thumbnail( $post->post_id ); ?>
    <?php get_post_meta( $post->post_id, 'Embed_URL', true ); ?>

  <?php endforeach; ?>

  <?php else : ?>
    <h2 class="center">Not Found</h2>
 <?php endif; ?>

The post is posted twice.

Thank you very much as always!