Adding Multiple Post Types to Query [duplicate]

If you look at the wp_query documentation you will see that it is possible to pass multiple arguments as post_type. Like this:

'post_type' => array( 'module', 'lessons' )

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