From bb201b4031c3d297f871c008cc95f331d4ce381c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sun, 30 Nov 2014 20:22:06 +0100 Subject: [PATCH] Fix author list when a book has many author. Was broken for a long time. --- author.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/author.php b/author.php index ff60ff4..6149bd3 100644 --- a/author.php +++ b/author.php @@ -82,7 +82,7 @@ order by substr (upper (sort), 1, 1)", "substr (upper (sort), 1, 1) as title, co } public static function getAuthorByBookId ($bookId) { - $result = parent::getDb ()->prepare('select ' . self::AUTHOR_COLUMNS . ' from authors, books_authors_link + $result = parent::getDb ()->prepare('select authors.id as id, authors.name as name, authors.sort as sort from authors, books_authors_link where author = authors.id and book = ?'); $result->execute (array ($bookId));