Notice: Trying to get property of non-object when trying to get thumbnail URL

Notice: Trying to get property of non-object when trying to get thumbnail URL

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