the_permalink() not working

Usually this is because the “Site URL” field in Settings > General is wrong. It probably says “domain.com” where it should say “domain.com/news”.

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