From 8c6d284989c51d23ce5ac49959f4073d00cb34b5 Mon Sep 17 00:00:00 2001 From: nonmakina Date: Sat, 9 Jan 2021 01:25:44 -0600 Subject: [PATCH] fix typo produced when copying changes --- templates/themes/semirand/theme.php | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/themes/semirand/theme.php b/templates/themes/semirand/theme.php index 6e5b1caa..cd670a52 100644 --- a/templates/themes/semirand/theme.php +++ b/templates/themes/semirand/theme.php @@ -90,7 +90,6 @@ private function fetchReplies($board, $thread_id, $preview_count) { $query = prepare("SELECT * FROM (SELECT * FROM ``posts_$board`` WHERE `thread` = :id ORDER BY `time` DESC LIMIT :limit) as t ORDER BY t.time ASC"); - $query = prepare("SELECT * FROM ``posts_$board`` WHERE `thread` = :id"); $query->bindValue(':id', $thread_id, PDO::PARAM_INT); $query->bindValue(':limit', $preview_count, PDO::PARAM_INT); $query->execute() or error(db_error($query));