UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'rPlxFHQFClTLlyhakKZsxkYyHI/oKk54mulWRzQQZAo='
WHERE
key_id = '37252284b4db4254e7c720cb3cb727133e7a171129bed52d02e014ab4929845f'
AND (
token = 'rPlxFHQFClTLlyhakKZsxkYyHI/oKk54mulWRzQQZAo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)