**scenario**:

I need to show static user message if user not exist
I tried below Query, Or condition needs to be check only if first condition fail but i get both user message.

```
SELECT message_id, to_user, status FROM message_status USE INDEX (from_user,to_user) 
WHERE (from_user = '0e005822-8001-4a4d-be47-d078f3a5e4f6'
and (to_user = '90e0e182-a4fb-11ec-b909-0242ac120002'
 OR to_user = 'static123456789'));

```

[![enter image description here](https://i.stack.imgur.com/wwEZp.png)](https://i.stack.imgur.com/wwEZp.png)