Excluding a custom taxonomy term breaks wp_get_post_terms

Thanks for your help everybody.

I was using a custom post type and forgot to include

'post_type'=>'my_custom_post_type' 

I finally got to the problem by doing a var_dump on the WP_Query object and looking at the SQL. Running the query directly on the database and picking through it, I eventually found my error.

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