SELECT * FROM `users` WHERE JSON_CONTAINS(`sessions`, '{"ip": "::1"}', '$.ip');
[ { "ip": "::1", "ua": "821789b99f9168330b06379c53813800", "time": 1704866684, "token": "fdd14aacf0a872baf08d8b0aac6c0b0740da4b8a" } ]
SQL SELECT \* FROM users WHERE JSON\_VALUE(sessions, '$.ip') = '::1';