Multiple Tax Query with Meta Key

You have

'terms' => 'terms' => get_terms( 'brands', array( 'fields' => 'ids' ) ), 

when it should be

'terms' =>  get_terms( 'brands', array( 'fields' => 'ids' ) ),

Unless that is a typo when adding your code example?

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