Ajax in Plugins: returns the whole page

you are return simple a string in response variable that is not legitimate on the next line you are returning wp_send_json expect an array but you pass a variable.

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