Thread:Project:Support desk/How to use the OR operator in queries?/reply (5)

makeList isn't a method of SpecialPage, it's a method of DatabaseBase. So use $dbr->makeList( $conds, LIST_OR );

And the condition parameter expect one array i think. I don't know, what happens, when you try to give two arrays. o please use a string if you want to combine or and and conditions. E.g. use $conds_and as a string for makeList( $and_conditions, LIST_AND ); and $conds_or as a string for makeList( $or_conditions, LIST_OR );