title: MySQL distinct not working as intended
body: <p>I have a problem. I have filtering of products with checkbox clicks. But, when I click two different recording, It looks the same product again. I want it to look only clicked product.</p>
  
  <p>Thanks.</p>
  
  <pre><code>$bcheck=trim(strip_tags($_POST['bcheck']));
  
  $dizi = explode(',',$bcheck);
  foreach ($dizi as $diziyaz){    
  
  $filtrele=mysql_query("SELECT DISTINCT * FROM urunler 
             INNER JOIN urunozellikler ON urunler.id = urunozellikler.urunid 
              WHERE urunozellikler.id='$diziyaz' AND urunler.dil='tr' 
              AND urunler.onay='1'");
  
  while($filtreleyaz=mysql_fetch_array($filtrele)){
  
  echo $filtreleyaz["urunad"];
  
  }
  
  }
  </code></pre>