SELECT TOP 1 id, title, pic, path, content
FROM info
WHERE id not in
(SELECT top 1 id from info
WHERE Commend_Top = 1 AND agree = 1
ORDER BY addtime desc)
AND Commend_Top = 1 AND agree = 1 ORDER BY addtime desc
sql =
"select
id, title, pic, path, content
from info t
where (select count (1) from info where id = t.id and addtime> t.addtime) = 1 and Commend_Top = 1 and agree = 1 order by id desc "