Displaying multiple post types on home page

I was able to query two custom post types by using this line:

AND wposts.post_type IN ('custom_post_type_1', 'custom_post_type_2')

This worked for my situation, where each custom post type was being sorted by the same meta_key

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