i'm having trouble setting the where clause on the repeater that displays the docuemnts associated to the click tag in the tag cloud web part
here is my code
<cms:CMSUpdatePanel runat="server" ID="UpdatePanel1">
<ContentTemplate>
<cms:CMSRepeater ID="AllPosts" runat="server" OnItemDataBound="AllPosts_ItemDataBound" DelayedLoading="true" ClassNames="cms.blogpost" OrderBy="BlogPostDate DESC" TransformationName="cms.blog.PostPreview" SelectedItemTransformationName="cms.blogpost.Default" EnableViewState="false" WhereCondition="({%tagid|(toint)%} = 0 AND '{%tagname%}'='') OR (DocumentID IN (SELECT DocumentID FROM CMS_DocumentTag WHERE TagID = {%tagid|(toint)%}))OR (DocumentID IN (SELECT DocumentID FROM CMS_DocumentTag WHERE TagID IN (SELECT TagID FROM CMS_Tag WHERE TagName = '{%tagname%}' AND TagGroupID = {%groupid|(toint)%})))"></cms:CMSRepeater>
<cc1:UniPager ID="UniPager" PageControl="AllPosts" runat="server" PageSize="10" PagerMode="PostBack" DisplayPreviousNextAutomatically="false" DisplayFirstLastAutomatically="false" HidePagerForSinglePage="true">
<NextPageTemplate>
<li><a href="<%# Eval("NextURL") %>">Next</a></li>
</NextPageTemplate>
<PageNumbersTemplate>
<li><a href="<%# Eval("PageURL") %>"><%# Eval("Page") %></a></li>
</PageNumbersTemplate>
<PreviousPageTemplate>
<li><a href="<%# Eval("PreviousURL") %>">Previous</a></li>
</PreviousPageTemplate>
<LayoutTemplate>
<div class="pager">
<ul>
<asp:PlaceHolder runat="server" ID="plcPreviousPage"></asp:PlaceHolder>
<asp:PlaceHolder runat="server" ID="plcPageNumbers"></asp:PlaceHolder>
<asp:PlaceHolder runat="server" ID="plcNextPage"></asp:PlaceHolder>
</ul>
</div>
</LayoutTemplate>
</cc1:UniPager>
</ContentTemplate>
</cms:CMSUpdatePanel>
<uc1:CommentView runat="server" ID="CommentView" ShowForDocumentTypes="cms.blogpost" CheckPermissions="False" AbuseReportAccess="Nobody" ShowDeleteButton="true" ShowEditButton="true" DisplayTrackbacks="true" EnableViewState="false" />
</div>
<div id="right-content">
<uc1:TagCloud ID="TagCloud" runat="server" SiteName="Quiller" ShowForDocumentTypes="cms.blog;cms.menuitem" TagGroupName="Blog" QueryStringName="tagid" />
</div>
i'm getting this error on the where clause
[DataConnection.ExecuteQuery]: Query: SELECT * FROM View_CONTENT_BlogPost_Joined WHERE (((((SiteName = N'Quiller') AND (Published = 1)) AND (DocumentCulture = N'en-GB')) AND (NodeAliasPath LIKE N'/Memorandum/%')) AND (({%tagid|(toint)%} = 0 AND '{%tagname%}'='') OR (DocumentID IN (SELECT DocumentID FROM CMS_DocumentTag WHERE TagID = {%tagid|(toint)%}))OR (DocumentID IN (SELECT DocumentID FROM CMS_DocumentTag WHERE TagID IN (SELECT TagID FROM CMS_Tag WHERE TagName = '{%tagname%}' AND TagGroupID = {%groupid|(toint)%}))))) ORDER BY BlogPostDate DESC : caused exception: Incorrect syntax near '?'.
Incorrect syntax near '?'.
Incorrect syntax near '?'.
any ideas