Building queries

Hi,
I would like to build a display that will list only posts from certain categories but query bulding documentation is scarce. I have made everything works except selecting posts from multiple categories.
I have $Wheres array '$Wheres = array('d.CategoryID' => 5)' but dont know how to put 'OR' clause in it so I could select posts from few more categories.
Any hint appreciated
.
I would like to build a display that will list only posts from certain categories but query bulding documentation is scarce. I have made everything works except selecting posts from multiple categories.
I have $Wheres array '$Wheres = array('d.CategoryID' => 5)' but dont know how to put 'OR' clause in it so I could select posts from few more categories.
Any hint appreciated

Tagged:
0
Comments
WhereIn('d.CategoryID', array(5, 6, 7))
I'm starting to like this application very much