So my problem is a bit simple but I can't seem to figure it out. My code will be posted below but what basically happens is that when it inserts the data into the database it shows up in db as Array.
$vcity = "SELECT * FROM user_characters WHERE nickname='$varvictim'";
$vcity = mysql_query($vcity);
$vcity = mysql_fetch_array($vcity);
$vcity = $vcity['city'];
$witness = "SELECT nickname FROM user_characters WHERE city='$vcity'";
$witness = mysql_query($witness);
$tempwitness = mysql_fetch_array($witness);
$query= "INSERT INTO $prefix.witnesses (`id`, `victim`, `killer`,
`witnessed`,`submitted`,`witness`, `statement`) VALUES
('','$varvictim','$attacker', '0', '0', '$tempwitness', 'You witnessed $attacker killing $varvictim!')";
$result=mysql_query($query) or die(mysql_error());
The field that show's up as Array is the $tempwitness field that is under Values.