mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-25 09:00:29 +00:00
[fix] error in query to get entries and tags
This commit is contained in:
parent
da5fc42f61
commit
9de34d4e84
1 changed files with 2 additions and 2 deletions
|
@ -337,7 +337,7 @@ class Database {
|
||||||
|
|
||||||
public function retrieveEntriesByTag($tag_id) {
|
public function retrieveEntriesByTag($tag_id) {
|
||||||
$sql =
|
$sql =
|
||||||
"SELECT * FROM entries
|
"SELECT entries.* FROM entries
|
||||||
LEFT JOIN tags_entries ON tags_entries.entry_id=entries.id
|
LEFT JOIN tags_entries ON tags_entries.entry_id=entries.id
|
||||||
WHERE tags_entries.tag_id = ?";
|
WHERE tags_entries.tag_id = ?";
|
||||||
$query = $this->executeQuery($sql, array($tag_id));
|
$query = $this->executeQuery($sql, array($tag_id));
|
||||||
|
@ -348,7 +348,7 @@ class Database {
|
||||||
|
|
||||||
public function retrieveTagsByEntry($entry_id) {
|
public function retrieveTagsByEntry($entry_id) {
|
||||||
$sql =
|
$sql =
|
||||||
"SELECT * FROM tags
|
"SELECT tags.* FROM tags
|
||||||
LEFT JOIN tags_entries ON tags_entries.tag_id=tags.id
|
LEFT JOIN tags_entries ON tags_entries.tag_id=tags.id
|
||||||
WHERE tags_entries.entry_id = ?";
|
WHERE tags_entries.entry_id = ?";
|
||||||
$query = $this->executeQuery($sql, array($entry_id));
|
$query = $this->executeQuery($sql, array($entry_id));
|
||||||
|
|
Loading…
Reference in a new issue