Is this correct get_template_part() in WordPress?

I think you have to enter the_post();, after have_post(),for more information on get_template_part(); refer to codex

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