The error is occurring because one of the columns in your table is named using the MySQL Reserved Word "references".
There are some words that should not be used when naming Columns, tables or other objects in you database because they are reserved as function calls. A full list of reserved words can be found here:
reserved-words.html