What’s wrong with my wp database query?

Any reason why you can’t use WordPress API?

 $cats = get_categories(array(
          'child_of'=>1
       )); 

See Codex here.

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