> Well, it didn’t tell me. It just said that I have an error.
It’s always helpful to share the *actual* error message, even if it seems vague.
Are you running this directly in SQL, or from a program (e.g., PHP)? SQL error messages are usually quite useful, but you won’t necessarily see them if you’re running the query from another program – you need to ask for them specifically.
Anyway, glad you solved it!