Custom page archive query by url var calling page twice on one of my custom queries?

I believe this is because cat is a reserved query parameter. Try change it to a different name like ‘category’ or just ‘c’.

If you compare the two URLs before and after the redirect, are they the same or changed slightly?

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