fixed sql for queue view
fixed sql for queue view

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