UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '0503PPea1VOxIXtxnc9SBO2HDVAfxoZ/AnlGhteWqa4='
WHERE
key_id = 'b837f917693510b5edb44be46ac2d6b29d7c8c16da4cfaaa69e781a2fcf97ca5'
AND (
token = '0503PPea1VOxIXtxnc9SBO2HDVAfxoZ/AnlGhteWqa4='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)