Since MYSQL5.7, strict mode is by default, and insert($table, $data) will fail if some bit colomn in $data, where in raw prepared statement, I can use the following to avoid the error.
insert into table_name (col_a, col_b, col_c) values (?, ?, b?)
see