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

I think you mean the database abstraction layer, yes? If so, you can simply submit your conditions as a string, instead of an array. If you don't want to build the list manually, you can use the DatabaseBase::makeList method with the second parameter "LIST_OR", see the docs for more documentation of this:

https://doc.wikimedia.org/mediawiki-core/master/php/html/classDatabaseBase.html#a8bc0559631db5130e6841b5e5873ac3e

And for the select method itself:

https://doc.wikimedia.org/mediawiki-core/master/php/html/classDatabaseBase.html#a76f9e6cb7b145a3d9020baebf94b499e