I have a table like this:
CREATE TABLE IF NOT EXISTS `session` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`token` varchar(32) NOT NULL,
`profile` varchar(1000
This should be a comment, but I don't have enough reputation... so..
DelphiQin, you said in a comment that you are passing the result of the CI "get()" method to the query parameter. I've been there and I solved by just casting the variable to string before passing to the query:
(string)$my_var
This way, it will use '' (empty string) instead of boolean false.
I hope it helps people with the same problem.