Excluding pages in WP_query using ACF

Convert your string of IDs into a proper array:

$exclude_ids = get_field( 'exclude_pages' );
$exclude_array = explode( ",", $exclude_ids );

Then pass $exclude_array as the value for post__not_in.

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