Custom Same Page Search

Don’t use a query variable that is used by the WordPress Core. That is, none of these.

You are using year. WordPress will latch onto that and process the request according its internal systems. Try something more distinct like hmg_year.

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