What kind of value will be inserted for receiver? An ID or a username?
Try this:
Code:
$DB_site->query("INSERT INTO ".TABLE_PREFIX."chat_messages (channel_id,chatter,chatter_id,chat_msg,msg_dateline,receiver,msg_private) VALUES (" . intval($msginsert['ch']) . ", '".addslashes($msginsert['chatter'])."'," . intval($msginsert['chatter_id']) . ", '".addslashes($msginsert['message'])."', ".TIMENOW.", '$msginsert[receiver]', '$msginsert[private]')");