Pagination broke after updateto WordPress 3.4 [duplicate]

Where is this code? It’s hard to tell without more info, but it looks like you’re trying to change the main query but are just running a new one. If so, you should be using the pre_get_posts hook. Otherwise your paging links will reflect the main query (which is what you want to modify) instead of the new one that you’re showing on the page.

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