UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '9E1I2VU6H9TvkWaqIYed3G+BGp2wV+iDYGgp2o/Ml6Y='
WHERE
key_id = '69bf2728a338233c57854a2ec06e52c7711e734dc01ff3e5e883985dfbd3748c'
AND (
token = '9E1I2VU6H9TvkWaqIYed3G+BGp2wV+iDYGgp2o/Ml6Y='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)