diff options
author | Andrew Dolgov <[email protected]> | 2014-11-29 20:35:16 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-11-29 20:35:16 +0300 |
commit | 3ba0599de7646fc022c6c8b3687da762feabe817 (patch) | |
tree | c4d3898fa023e44f495f978cbd21cbef973dc146 /include/functions2.php | |
parent | 3194a70a037d70f3d3ce4eb3a5882ccb748b40ff (diff) | |
parent | 880647ba007efca401a41c97cbdc76fedfc36930 (diff) |
Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS
Diffstat (limited to 'include/functions2.php')
-rw-r--r-- | include/functions2.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions2.php b/include/functions2.php index 866c92ec9..29594076c 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -1975,8 +1975,8 @@ } function getLastArticleId() { - $result = db_query("SELECT MAX(ref_id) AS id FROM ttrss_user_entries - WHERE owner_uid = " . $_SESSION["uid"]); + $result = db_query("SELECT ref_id AS id FROM ttrss_user_entries + WHERE owner_uid = " . $_SESSION["uid"] . " ORDER BY ref_id DESC LIMIT 1"); if (db_num_rows($result) == 1) { return db_fetch_result($result, 0, "id"); |