<? $show=mysql_query("DELETE FROM progs where pid in(SELECT max(pid) FROM `progs` group by prog having count(prog)>=0)"); ?>