diff options
Diffstat (limited to 'core/database.vala')
-rw-r--r-- | core/database.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/database.vala b/core/database.vala index 6b562d0c..38fbada3 100644 --- a/core/database.vala +++ b/core/database.vala @@ -443,7 +443,7 @@ namespace Midori { public async virtual List<DatabaseItem>? query (string? filter=null, int64 max_items=15, Cancellable? cancellable=null) throws DatabaseError { string where = filter != null ? "WHERE uri LIKE :filter OR title LIKE :filter" : ""; string sqlcmd = """ - SELECT rowid, uri, title, date, count () AS ct FROM %s + SELECT rowid, uri, title, date, count (uri) AS ct FROM %s %s GROUP BY uri ORDER BY ct DESC LIMIT :limit |