"Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction."
After a while of asking and Googling, found that there are 2 possible reasons of this error:
1. By default, Mariadb5.5/MySQL5.5 enable the replication between db servers (master/slave)
2. And by default, Mariadb5.5/MySQL5.5 using innodb engine. Maybe not all of my tables were created under the same engine (I re-used some 3rd party django apps).
To solve this issue, set binlog_format as mixed: