diff --git a/source/cdcdb/dblite.d b/source/cdcdb/dblite.d index 29c304f..63f7725 100644 --- a/source/cdcdb/dblite.d +++ b/source/cdcdb/dblite.d @@ -809,7 +809,7 @@ public: JOIN users u ON u.uid = s.uid JOIN users r ON r.uid = s.ruid JOIN files f ON f.id = s.file - WHERE f.id = ?1 + WHERE s.id = ?1 ORDER BY s.created_utc }, id[] );