I love syntax highlighting ...
4th and 5th statement are in red. why? because there's one single and unnecesary " at the end of the previous line.
also, there is an escape missing in this line
echo "<img src="".$stats['image']."\">";
echo "<img src=[/COLOR]"".$stats['image']."\">";
(though this was correct in your first post)