UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'vEuodDZkEoNKhuuqRoCf9pvTJEYda70L3da20aASn+g='
WHERE
key_id = '915d7611fe77a8d7a887e51937dd24d6266d6d6b2c3ada9cd8271f099e0048f6'
AND (
token = 'vEuodDZkEoNKhuuqRoCf9pvTJEYda70L3da20aASn+g='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)