Related post thumbnail not showing up

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)