select a.no_text,b.idnotify from notify as a
LEFT JOIN (select no_text,max(no_id) as idnotify from notify) as b
ON b.no_text = a.no_text
group by a.no_text
select no_text,max(no_id) as idnotify from notify
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\webtest\MAINMENURIGHT.php on line 15