alkacon/alkacon-oamp — pull request #13 by 4fingers (2012-04-13 15:39:22+00:00)
Title: LIMIT is a MySQL specific command and not available in MSSQL:

http://vorg.ca/626-the-MS-SQL-equivalent-to-MySQLs-limit-command

Looks like you just forgot to remove the MySQL part of the command since you already use the TOP command.