title: MySQL SELECT DISTINCT is outputting duplicates
body: <p>This query is set to SELECT DISTINCT.  However, I get duplicates.  It's supposed to show two random page titles / images:</p>
  
  <pre><code>    SELECT DISTINCT
      `$page_type`.title AS title,
      page_images.image_loc AS images
      FROM `$page_type`, page_images
      WHERE page_images.url_title = `$page_type`.url_title AND
      `$page_type`.url_title != '$spot'
      ORDER BY RAND() LIMIT 2
  </code></pre>
  
  <p>Any idea why this is outputting duplicates?</p>