How to get any type posts include attachments by ids?

‘post_type’=>’any’ should get you all types except revisions so you should get the attachments but if you don’t try:

query_posts( array( 
               'posts_per_page' => -1,
               'ignore_stickies' => 1,
               'post_type'=> array( 'post', 'page', 'attachment' ),
               'post_status' => array( null ),
               'post__in'=> $id_list 
) );

Update

As t31os pointed out that:

Attachments don’t have a publish
status, which is default for the query

so i added to the query_posts array 'post_status' => null and that should fix your query

tech