Pages with a loop (index, archive) are loading the first image as post_thumbnail

Your theme uses a custom function to get the first image, if you post your index.php codes here you maybe find someone to help.

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