fixed SQL Query for Postges Support.
fixed SQL Query for Postges Support.

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