" WHERE " + (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") + "tags & ?");
" WHERE " + IN_THIS_MAILBOX_AND + "tags & ?");
    public static void clearTag(Tag tag) throws ServiceException {        Mailbox mbox = tag.getMailbox();        Connection conn = mbox.getOperationConnection();        PreparedStatement stmt = null;        try {            stmt = conn.prepareStatement("UPDATE " + getMailItemTableName(tag) +                    " SET tags = tags & ?, mod_metadata = ?, change_date = ?" +                    " WHERE " +                    (DebugConfig.enableMailboxGroup ? "mailbox_id = ? AND " : "") +                    "tags & ?");            int pos = 1;            stmt.setLong(pos++, ~tag.getBitmask());            stmt.setInt(pos++, mbox.getOperationChangeID());            stmt.setInt(pos++, mbox.getOperationTimestamp());            if (DebugConfig.enableMailboxGroup)                stmt.setInt(pos++, mbox.getId());            stmt.setLong(pos++, tag.getBitmask());            stmt.executeUpdate();            if (areTagsetsLoaded(mbox.getId())) {                TagsetCache tagsets = getTagsetCache(conn, mbox.getId());                tagsets.applyMask(tag.getTagBitmask(), false);            }        } catch (SQLException e) {            throw ServiceException.FAILURE("clearing all references to tag " + tag.getId(), e);        } finally {            DbPool.closeStatement(stmt);        }    }