mysql_query("SELECT * FROM yazilar,kategoriler WHERE yazilar.catid='1' AND kategoriler.catid=yazilar.catid ORDER by ID DESC LIMIT 0,10");