From: Andrew Dolgov Date: Sun, 20 Nov 2005 10:42:57 +0000 (+0100) Subject: feed details now actually shows latest headlines, not first ones X-Git-Tag: schema_feature_freeze_for_1.1~156 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c565e1ef9ec14e2383db4acceb5e5ffcebae66de;p=tt-rss.git feed details now actually shows latest headlines, not first ones --- diff --git a/backend.php b/backend.php index da97e097..22fc434b 100644 --- a/backend.php +++ b/backend.php @@ -2221,10 +2221,10 @@ print ""; - $result = db_query($link, "SELECT title,updated + $result = db_query($link, "SELECT title,updated,unread FROM ttrss_entries,ttrss_user_entries WHERE ref_id = id AND feed_id = '$feed_id' - ORDER BY date_entered LIMIT 5"); + ORDER BY date_entered DESC LIMIT 5"); if (db_num_rows($result) > 0) { @@ -2233,6 +2233,9 @@ print "