Having problems accessing $_GET values

Most probably the reason is that WordPress uses the default query on the homepage, which maybe the reason why you are getting an empty array for $_GET.

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