diff --git a/controller/lib/bookmarks.php b/controller/lib/bookmarks.php index ac3071f7..e84b9e9a 100644 --- a/controller/lib/bookmarks.php +++ b/controller/lib/bookmarks.php @@ -491,7 +491,7 @@ class Bookmarks { if ($dbtype === 'mysql') { $sql .= 'from dual '; } - $sql .= 'where not exists(select * from `*PREFIX*bookmarks_tags` where bookmark_id = ? and tag = ?)'; + $sql .= 'where not exists(select * from `*PREFIX*bookmarks_tags` where `bookmark_id` = ? and `tag` = ?)'; $query = $db->prepareQuery($sql); foreach ($tags as $tag) {