to mysql_fetch_array mysql_query SELECT FROM chat WHERE msg LIKE user

1
$to = mysql_fetch_array(mysql_query("SELECT * FROM `chat` WHERE `msg` LIKE '%".$user['nick'].",%'"));