Query of custom post types only shows first post

I think you need to change:

$case_studies->query('post_type=case_studies&p=54,49,44');

to

$case_studies->query_posts( array( 'post__in' => array( 54, 49, 44 ) ) );

I’d look at this page for LOTS more examples. http://codex.wordpress.org/Function_Reference/query_posts. when your there search for “Multiple Posts/Pages Handling”.

Hope this helps, I’m still new to wordpress.

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