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=381), topicid=381, userid=1