$sql=mysql_query("select * from firmalar f LEFT JOIN altkat a ON katid = aktid order by id desc limit 10");