Is the Rank field in your database set to NOT NULL? I suspect it is, as that error is generally only returned when a Null value is being insterted. In the case of a character that are not Org'd the Org Rank and Org Rank Name would be Null values.
I would check to see what fields you have set to NOT NULL. Or you can have mySQL insert a Default value of 0.
Here's a SQL Query you could use to set all that.
alter table `members` ,change `rank` `rank` tinyint (4) DEFAULT '0' NULL