In my query I want to write where logic with And operation with OR . But my query not work.

```
select * 
from `data` 
where `city`='mycity' 
AND performDate='4' 
and (curtime() >= `valid_from` OR curtime() <= `valid_to`) 
and perform_type='ptype'

```

I think 

```
(curtime() >= 
`valid_from` OR curtime() <= `valid_to`)

```

this logic not work