Incorrect syntax near 'LIMIT' using mssql