Failed to execute the [velocity] macro. Cause: [unexpected token: order near line 1, column 680 [select distinct doc.fullName as fullName, elements(prop.list) from com.xpn.xwiki.doc.XWikiDocument as doc, com.xpn.xwiki.objects.BaseObject as tagobject, com.xpn.xwiki.objects.DBStringListProperty as prop, com.xpn.xwiki.objects.BaseObject as obj0, com.xpn.xwiki.objects.DateProperty as prop0 where (doc.hidden <> true or doc.hidden is null) and (tagobject.name=doc.fullName and tagobject.className='XWiki.TagClass' and tagobject.id=prop.id.id and prop.id.name='tags' and doc.translation=0 and obj0.name = doc.fullName and obj0.className = 'Internships.Class' and obj0.name <> 'Internships.Template' and prop0.id.id = obj0.id and prop0.name = 'endDate') order by prop0.value desc order by fullName]]. Click on this message for details.