UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '0NbVqQ7+Cwz9FqYUQ3dZKourfRFJ44f06Ry9RkQzJMs='
WHERE
key_id = 'ceacb06ee5f238943d765fdd40d9da711f920dd4213916fdf2edbeb54bff2c37'
AND (
token = '0NbVqQ7+Cwz9FqYUQ3dZKourfRFJ44f06Ry9RkQzJMs='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)