UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'vJJpqbs8xAPgU7FgLRroVcwp77Ov/z657vWpNNC3JCE='
WHERE
key_id = '6448776dd4a59aa5169c75655c50a8e7e303a706975396b2975d799288d4fee8'
AND (
token = 'vJJpqbs8xAPgU7FgLRroVcwp77Ov/z657vWpNNC3JCE='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)