select * from pnews where npub='$npub' and nbid='$bname' and to_days($ndate) > to_days(ndate)