UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+pX/Pb7sq8/UB9UnbY+gO/rcp0nuIrJ9rmGrWSE1laU='
WHERE
key_id = '1fd909ea80687ee20b8ceaf02a502abba6ba9f20fddda8000d007e39273d1f49'
AND (
token = '+pX/Pb7sq8/UB9UnbY+gO/rcp0nuIrJ9rmGrWSE1laU='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)