MySQL query error!

MySQL query error!


Error: Column 'lastpostread' cannot be null
Query: INSERT INTO xbtit_readposts SET lastpostread=(SELECT MAX(id) FROM xbtit_posts WHERE topicid=347), topicid=347, userid=1