Disable plugin on admin page

use if(!is_admin()) to check your code run only if you Not in admin area

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