Using copy/paste from your post, I tried the query on my database (which is SQL Server 2012, so not the same version) and it ran without error.
Can you repost the complete error message using copy/paste from the error window? (I see some typos in the error message so I assume you typed it here instead of using copy/paste).
When you double-click the error message, what line in the query window is highlighted?