ACF Dynamic select not showing data

Can you try this amendment and see if $field is returning as you expect?

$field['choices'][] = $choice;

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