How to add an “or” instead of and “and” (&) in a WordPress query?

If you have the category ID you can use the category__in parameter eg:

<?php $custom_posts->query(array('category__in' =>array(1,2,3))); ?>

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