The problem is caused by using SQL reserved words when naming the columns in your database.
you have columns named "data" and "from" in your table. These are both reserved words by the MySQL server and should be avoided as column names. A full list of MySQL Reserved words can be found here:
reserved-words.html