Select [GLAccGLCaption] with doubles

Select * from [GLAccGLCaption] INNER JOIN
(
Select [DBId], [GLAccountId], [TableName], [TableId], [GLCaptionPlanId]
from [GLAccGLCaption] where Not [GLCaptionId] = 0
Group by [DBId], [GLAccountId], [TableName], [TableId], [GLCaptionPlanId]
having count(*) > 1
) as [ResTable]
ON ([GLAccGLCaption].[DBId] = [ResTable].[DBId]
and [GLAccGLCaption].[GLAccountId] = [ResTable].[GLAccountId]
and [GLAccGLCaption].[TableName] = [ResTable].[TableName]
and [GLAccGLCaption].[TableId] = [ResTable].[TableId]
and [GLAccGLCaption].[GLCaptionPlanId] = [ResTable].[GLCaptionPlanId])
order by [GLAccGLCaption].[DBId], [GLAccGLCaption].[GLAccountId], [GLAccGLCaption].[TableName], [GLAccGLCaption].[TableId], [GLAccGLCaption].[GLCaptionPlanId]