UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'EOg8/YLSXG6G7g5Sn5vtQpK4SODGR+ZxOfOfpSVFboQ='
WHERE
key_id = '512f0783eb13350b9ad49ba7469681f36945b2c172feaec7ac247bbdda6dd541'
AND (
token = 'EOg8/YLSXG6G7g5Sn5vtQpK4SODGR+ZxOfOfpSVFboQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)