Some changed SQL-statement to make hotquestion work with MSSQL