UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'Ozyes279gK2rJH7rU6dLen70st/FS5GWJqiM7E2Qzyg=' 
WHERE 
  key_id = '62447db3418533c518b3b217d156f5ba73a13330230a40c9288b6394a8e2db6d' 
  AND (
    token = 'Ozyes279gK2rJH7rU6dLen70st/FS5GWJqiM7E2Qzyg=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00026