UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+uJzXrPQ+orZvjZrqaLPRN2GB/5HZaQljIonhcD092c='
WHERE
key_id = '92ca5bef33051fa1a2c72ebf315c2dc8c920a19f5aac8fd153ce101becc0001e'
AND (
token = '+uJzXrPQ+orZvjZrqaLPRN2GB/5HZaQljIonhcD092c='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)