Getting posts to exclude from array

simply not “imploding” your array since implode() returns a string and post__not_in accepts an array

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