MySQLの予約語でエラー
このようなエラーが出てどうにもならなかったが「condition」が予約語だった
- SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition TEXT NOT NULL, ...
カラム名を変えるか、バッククオートで括る(`condition`)ことで対処
参考:MySQLの予約語
http://dev.mysql.com/doc/refman/5.1/ja/reserved-words.html