help with replacing OR in query

Original text of this message