UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '95B0/uEypMTBAoOWbCsGjcU1jHEsKso2lF9qFo/eExY='
WHERE
key_id = 'fc2c11c72c1bcd8fae0bdb7e3446dd9b2a98818aa7b2b056c0d3252544de4dc6'
AND (
token = '95B0/uEypMTBAoOWbCsGjcU1jHEsKso2lF9qFo/eExY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)