I Googled the error message, and it seems to indicate that you might be using an old version of postfix (2.1 or earlier)but the new (2.2 and later) sql query syntax. Check your version of postfix with
If you're using postfix 2.1 or earlier, you should use the syntax described in the mysql_table man page that came with your distribution.