Here is the code that sends the data to the DB:
$sql = "INSERT INTO facebook (`artist_id`, `facebook_id`, `likes`, `talking_about_count` , `facebook_username`)VALUES ('" . $artist_id . "','" . $artist_object->id . "','" . $artist_object->likes . "','" . $artist_object->talking_about_count . "','" . $artist_object->username . "')";
echo "Adding " . $artist_object->username . " to Database";
echo '<br />' . $artist_object->id . '<br />';
var_dump($sql);
Here is what is echoed to the page:
Adding tiesto to Database
12626353545
string(160) "INSERT INTO facebook (`artist_id`, `facebook_id`, `likes`, `talking_about_count` , `facebook_username`) VALUES ('5','12626353545','16868620','428952','tiesto')"
Here is what is reflected in the DB for user #5
artist_id : 5
facebook_id : 2147483647
likes : 16868620
talking_about_count : 428952
facebook_username : tiesto
What is causing the DB to change the number for the facebook ID? I originally thought it might have something to do with the length of the INT field, but I've set it to 30, and made sure the encoding is set correctly. Kinda stumped on this one?