[Error loading the WebPart 'TagName' of type 'TagName']

[Error loading the control 'repeater', check event log for more details]

[DataConnection.HandleError]:

Query:

WITH AllData AS
(
SELECT *, ROW_NUMBER() OVER (ORDER BY CMS_SRN, CMS_SN) AS [CMS_RN] FROM
(
(SELECT [ArticleID], [GpsCode], [Name], [Title], [OurID], [Text], [Region], [Date], [LastAccess], [Count], [IsVisible], [MoreInfo], [Caption], [Perex], [ShowInListing], [Category], [ShowMap], [Top100], [CityDisplayNameID], [PriorityInFulltext], [Photo], [WtdLeftTitle], [WtdLeftImage], [WtdLeftImage2], [WtdLeftUrl], [WtdLeftDateTo...

...IN (SELECT TagID FROM CMS_Tag WHERE TagName = '' AND TagGroupID = )))) AND ([Published] = @Published AND (NodeAliasPath LIKE N'/Tourists/%') AND ([DocumentCulture] = @DocumentCulture OR [DocumentCulture] = @DocumentCulture1)))
)
AS SubData
WHERE [CMS_C] = @CMS_C AND [CMS_DUP] = @CMS_DUP
)
SELECT *, (SELECT COUNT(*) FROM AllData) AS [CMS_TOT] FROM AllData WHERE CMS_RN BETWEEN 1 AND 15 ORDER BY CMS_RN


Caused exception:
Incorrect syntax near ')'.
Incorrect syntax near ')'.