UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'wzeRv+evhe0cUomDDdAobHSd7jbP35JFTdOeqU/SXGQ='
WHERE
key_id = '3cb40ebb24aee4666283bac211e0595b988340a1dcf153ceabb1bd7540d6e903'
AND (
token = 'wzeRv+evhe0cUomDDdAobHSd7jbP35JFTdOeqU/SXGQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)