Instead of 4 loops, how can I do it better?

Have a look at the category parameters of WP_Query

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