I have database
| user | info |
|---|---|
| 0 | {"messages": [{"user_to": 1, "timestamp": 1663000000}, {"user_to": 2, "timestamp": 1662000000}]} |
| 1 | {"messages": [{"user_to": 0, "timestamp": 1661000000}, {"user_to": 2, "timestamp": 1660000000}]} |
| 2 | {"messages": []} |
And I want to select all users who sent messages between timestamp 1662000000 and 1663000000 (any amount of messages, not all of them)
I don't have external table of messages, so I can't select from there