Display a mixed list of posts and media

Something like this should work :

$args = array ( 'post_type' => array( 'post', 'attachment'), 'category' => ARTICLE_CATID   );
$query = new WP_Query( $args );