Fix syntax errors for MySQL

* Remove `LIMIT -1` (described as `:n -1`)
* Move `INTO OUTFILE` (described as `:o`) to the last part of SELECT statement
Remove precision indicator or something
Add alias name