UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '/MzmBiJVw3/fB0CucabdUV3qkdyhvHlQmPjDQ4j/qUQ='
WHERE
key_id = 'cb37f2383ed5480e44a08d16e2e190293625c4ad090ddfda3041505f88556c53'
AND (
token = '/MzmBiJVw3/fB0CucabdUV3qkdyhvHlQmPjDQ4j/qUQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)