Fix for SELECT DISTINCT with Limit on Microsoft SQL Server.
Fix for SELECT DISTINCT with Limit on Microsoft SQL Server.

mburggraf/otrs,thorsteneckel/otrs,MBRG/otrs,balazj/otrs,oiami/otrs,PortgasDAce/otrs,s7design/otrs,mbeijen/otrs-1,vlascoder/otrs,balazj/otrs,oiami/otrs,StCyr/otrs,balazj/otrs,crythias/otrs,s7design/otrs,eliasp/otrs,brandonshults01/otrs,mburggraf/otrs,xhoy/otrs,StCyr/otrs,linearregression/otrs,nilei/otrs,xhoy/otrs,rudy500/otrs,balazj/otrs,nilei/otrs,MBRG/otrs,StCyr/otrs,mburggraf/otrs,thorsteneckel/otrs,capeit-tto/otrs,eliasp/otrs,thorsteneckel/otrs,rudy500/otrs,muehlbauer/otrs,xhoy/otrs,muehlbauer/otrs,capeit-tto/otrs,PortgasDAce/otrs,nilei/otrs,moritz/otrs,brandonshults01/otrs,PortgasDAce/otrs,MBRG/otrs,vlascoder/otrs,oiami/otrs,capeit-tto/otrs,mburggraf/otrs,oiami/otrs,rudy500/otrs,brandonshults01/otrs,mbeijen/otrs-1,noritnk/otrs,crythias/otrs,crythias/otrs,thorsteneckel/otrs,StCyr/otrs,muehlbauer/otrs,moritz/otrs,crythias/otrs,linearregression/otrs,noritnk/otrs,crythias/otrs,rudy500/otrs,MBRG/otrs,PortgasDAce/otrs,brandonshults01/otrs,xhoy/otrs,linearregression/otrs,eliasp/otrs,s7design/otrs,StCyr/otrs,nilei/otrs,linearregression/otrs,PortgasDAce/otrs,muehlbauer/otrs,MBRG/otrs,brandonshults01/otrs,noritnk/otrs,nilei/otrs,moritz/otrs,eliasp/otrs,s7design/otrs,balazj/otrs,mbeijen/otrs-1,eliasp/otrs,moritz/otrs,muehlbauer/otrs,moritz/otrs,rudy500/otrs,thorsteneckel/otrs,linearregression/otrs,vlascoder/otrs,xhoy/otrs,oiami/otrs,s7design/otrs,mburggraf/otrs