Blog Posts not sorted and pagination not adjusted after filtering some category

Depending on how many categories you will have, I would create result pages for each category.
I would do the filtering with the GET method as you already did. And it would use a switch case to select each result page.

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