$sql=mysql_query("select id,baslik,haber1,haber2,resim from icerik order by id desc limit 10");

while(list($id,$baslik,$haber1,$haber2,$resim) = mysql_fetch_assoc($sql)):
echo("
<a href=\""
.make_url_friendly($baslik)."-resim-SEL".$id.".html\"><img src='".$resim."' width='120'></img></a>

"
);

endwhile;

hatalı olabilir...