Trying to create a cutom query with pagination and page 2 breaking. Any help?

Trying to create a cutom query with pagination and page 2 breaking. Any help?

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