diff --git a/app/routes/anpdf.php b/app/routes/anpdf.php index c0ebb44..53a11a2 100644 --- a/app/routes/anpdf.php +++ b/app/routes/anpdf.php @@ -327,7 +327,7 @@ function readtext_kuri($hash, $page = 1, $promo = 'full'){ foreach ($content as $news) { $author_id = $news['author_id']; } - $authorname = db_get("SELECT `authorname` FROM `authors` WHERE `author_id` = $author_id"); + $authorname = db_get("SELECT `authorname` FROM `authors` WHERE `author_id` = $author_id LIMIT 1"); echo $authorname; //print_r($content);