diff --git a/chrome/content/zotero/xpcom/data_access.js b/chrome/content/zotero/xpcom/data_access.js index 5109516d8..2f5b5d17c 100644 --- a/chrome/content/zotero/xpcom/data_access.js +++ b/chrome/content/zotero/xpcom/data_access.js @@ -315,7 +315,7 @@ Zotero.Item.prototype.getCollections = function(){ * Determine whether the item belongs to a given collectionID **/ Zotero.Item.prototype.inCollection = function(collectionID){ - return !!parseInt(Zotero.DB.valueQuery("SELECT COUNT(*) collectionID " + return !!parseInt(Zotero.DB.valueQuery("SELECT COUNT(*) " + "FROM collectionItems WHERE collectionID=" + collectionID + " AND " + "itemID=" + this.getID())); }