tax_query not working in template

If you look at the documentation for WP_Query taxonomy parameters, you’ll see that the tax_query is an array of arrays.

So:

'tax_query' => array(
    array(
        'taxonomy' => 'product-type',
        'terms' => array('software'),
        'field' => 'slug'
     )
)

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