TODO!

@DavidIQ @Noxwizard anyone of you knows the query from https://tracker.phpbb.com/browse/PHPBB3-11922?focusedCommentId=40453&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-40453 for SQL Server 2000 ?