How to display custom post types AND regular posts separately on a shared taxonomy archive?

Use a new query outside the loop like this one

$query = new WP_Query( 'category_name=ben affleck;post_type=post' );

if ( $query->have_posts() ) : while $query->have_posts() : $query->the_post();

 // Loop output goes here

endwhile; endif;

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