UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'LxE9BAVXFNsaf14UQ2rfyeUD3eoJ7yv5cCl+OE5o2jo='
WHERE
key_id = '937c28da81bbecc817af8d01462b4ff14c180418eddcc823eae0c701989c5f39'
AND (
token = 'LxE9BAVXFNsaf14UQ2rfyeUD3eoJ7yv5cCl+OE5o2jo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)