Reset Loop get_posts();

$posts is a global var used by WordPress, change that to something unique and it’ll work as expected.

Also fyi, rewind_posts(); isn’t necessary here, you haven’t run the loop yet, so there’s nothing to rewind.

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