For some reason this query activates PHP's die I set for it. I just don't get it because it works fine in just SQL, and all the PHP variables are correct. Name is varchar(12), Message is Text, InRoom is SmallInt, Time is DateTime, and IP is text.

```
<?php
    require 'functions.php';

    $room = sanitize($_POST['room']);
    $name = sanitize($_POST['name']);
    $message = sanitize($_POST['message']);
    $ip = $_SERVER['REMOTE_ADDR'];

    //print_r($_POST);
    $query ='INSERT INTO fate_chat_messages(Name, Message, InRoom, Time, IP) VALUES("'.$name.'", "'.$message.'", '.$room.', CURRENT_TIMESTAMP, "'.$ip.'")';
    $sql_result = mysql_query($query, $db) or die("Can't create post");
?>

```