fix column name

This commit is contained in:
Carly Ho 2023-06-29 20:00:27 -05:00
parent 8d11a9b3b3
commit 18ab068947
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ if (array_key_exists('give', $_GET)) {
// We're showing the number of kudos
$work = filter_var($_GET['show'], FILTER_SANITIZE_STRING);
$res = $db->query("select count(*) from works where id=\"{$work}\";");
$res = $db->query("select count(*) from works where workid=\"{$work}\";");
if ($res) {
$res = $res->fetchArray();
$count = $res['count(*)'];