UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'GJjDFXfdVOQ5B/Ykbp7X2jVNhelaihHbmvYsdI10V60='
WHERE
key_id = 'dc02598992f5f6f5e5666dd8cf8a9d49c918851d96cb2e758185fc51c8a42f18'
AND (
token = 'GJjDFXfdVOQ5B/Ykbp7X2jVNhelaihHbmvYsdI10V60='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)