Related post thumbnail not showing up

Looks like a simple typo:
$p['thumbnail_id]'];
should be:
$p['thumbnail_id'];