From 4f8a585049b1efd42a2ef5c92bafed718b2dc828 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Mon, 31 Aug 2020 15:35:17 -0600 Subject: [PATCH] Remove unnecessary table identifier --- src/forum.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forum.nim b/src/forum.nim index 36126a7..dacac75 100644 --- a/src/forum.nim +++ b/src/forum.nim @@ -369,9 +369,9 @@ proc selectLikes(postId: int): seq[User] = proc selectThreadAuthor(threadId: int): User = const authorQuery = sql""" - select u.id, name, email, strftime('%s', lastOnline), + select id, name, email, strftime('%s', lastOnline), strftime('%s', previousVisitAt), status, isDeleted - from person u where id in ( + from person where id in ( select author from post where thread = ? order by id