Latest updated categories list query, exclude one from displaying

Just skip the excluded category in your foreach:

foreach ( $cat_array as $cat ) {
    if ( $cat != EXCLUDED_CAT_ID ) {
        // Output
    }
}

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