WordPress loop not working only on home page, works on all other pages

nonsequiter reported in a comment that this issue has been resolved:

Figured out that WordPress install on server had limited posts on
homepage to 3.

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