UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'JLHwA+DuA7Pq2QjIXgvRdWnZPc/q5dIN8OmS4sEEp6g='
WHERE
key_id = '5e7194a30574f70da10da6ca135c5e90120656479ab996d12e23d8b7990718e5'
AND (
token = 'JLHwA+DuA7Pq2QjIXgvRdWnZPc/q5dIN8OmS4sEEp6g='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)