From: Nicolas LÅ“uillet Date: Fri, 3 Jan 2014 09:06:26 +0000 (+0100) Subject: [fix] error in query to get entries and tags X-Git-Tag: 1.3.1^2~12 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=9de34d4e8430b8b2d994aa9b681ec9f11dabf0b7;p=github%2Fwallabag%2Fwallabag.git [fix] error in query to get entries and tags --- diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index afe02a41..d8b63859 100644 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php @@ -337,7 +337,7 @@ class Database { public function retrieveEntriesByTag($tag_id) { $sql = - "SELECT * FROM entries + "SELECT entries.* FROM entries LEFT JOIN tags_entries ON tags_entries.entry_id=entries.id WHERE tags_entries.tag_id = ?"; $query = $this->executeQuery($sql, array($tag_id)); @@ -348,7 +348,7 @@ class Database { public function retrieveTagsByEntry($entry_id) { $sql = - "SELECT * FROM tags + "SELECT tags.* FROM tags LEFT JOIN tags_entries ON tags_entries.tag_id=tags.id WHERE tags_entries.entry_id = ?"; $query = $this->executeQuery($sql, array($entry_id));