...
The CREATE TABLE statement must list the key columns first if they are defined by a KEY specification in a key_or_not_null_spec.
In a CREATE TABLE statement, it is not allowed to specify KEY in a key_or_not_null_spec and a key definition.
Specify the key columns in the SQL statement correctly.