Thread:Project:Support desk/Using 'OR' operator in queries/reply

Conditions in Database access layer's select are always connected with AND (like the documentation to this function say: https://doc.wikimedia.org/mediawiki-core/master/php/html/classDatabaseBase.html#a76f9e6cb7b145a3d9020baebf94b499e

If you want to use OR; you can specify the conditions as a string, like (edited example from Manual:Database_access):

But: Maybe you can consider to remove the OR condition if possible, sometimes it ive a way to get the same result with only one condition or with and connected conditions.

Another way that should work is to use DatabaseBase::makeList. I haven't tested it, but you can define a new var and use this as a condition string (makeList returns a string), example: