Using two loops in one WordPress template

I think I have seen this problem before and you need to set global $post; on the line before to be able to use setup_postdata($post); as it does not return the $post object, but rather sets it in the global scope.

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