UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '/FUqjyU9erONL+OLtoP2NWdrDxvmjcyDdh0CucIvWAI='
WHERE
key_id = 'f26d2ca0594c75272dbde7d5c7998a800768951f27b132d39376ffa81a7579c7'
AND (
token = '/FUqjyU9erONL+OLtoP2NWdrDxvmjcyDdh0CucIvWAI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)