Getting property of non-object when looping through post objects from ACF

Nevermind, after a couple of minutes, I figured out the issue.

Instead of passing the $post->ID into get_the_permalink, I can just not pass any parameters in as the setup_postdata($post) takes care of this.

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