Warning: [mysql error 1054] Unknown column 'last_visit' in 'field list'

UPDATE piwigo_user_infos
  SET last_visit = NOW(),
      lastmodified = lastmodified
  WHERE user_id = 2
 in /customers/f/2/a/foto9300.dk/httpd.www/piwigo/include/dblayer/functions_mysqli.inc.php on line 845
Warning: [mysql error 1054] Unknown column 'format_id' in 'field list'

INSERT INTO piwigo_history
  (
    date,
    time,
    user_id,
    IP,
    section,
    category_id,
    image_id,
    image_type,
    format_id,
    auth_key_id,
    tag_ids
  )
  VALUES
  (
    CURRENT_DATE,
    CURRENT_TIME,
    2,
    '54.172.40.93',
    'categories',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  )
; in /customers/f/2/a/foto9300.dk/httpd.www/piwigo/include/dblayer/functions_mysqli.inc.php on line 845
Warning: [mysql error 1054] Unknown column 'history_id_to' in 'where clause'

SELECT
    *
  FROM piwigo_history_summary
  WHERE history_id_to IS NOT NULL
  ORDER BY history_id_to DESC
  LIMIT 1
; in /customers/f/2/a/foto9300.dk/httpd.www/piwigo/include/dblayer/functions_mysqli.inc.php on line 845
Fatal error: Uncaught Error: Call to a member function fetch_assoc() on boolean in /customers/f/2/a/foto9300.dk/httpd.www/piwigo/include/dblayer/functions_mysqli.inc.php:911 Stack trace: #0 /customers/f/2/a/foto9300.dk/httpd.www/piwigo/admin/include/functions_history.inc.php(195): query2array('\nSELECT\n *\n ...') #1 /customers/f/2/a/foto9300.dk/httpd.www/piwigo/include/functions.inc.php(502): history_summarize(50000) #2 /customers/f/2/a/foto9300.dk/httpd.www/piwigo/index.php(374): pwg_log() #3 {main} thrown in /customers/f/2/a/foto9300.dk/httpd.www/piwigo/include/dblayer/functions_mysqli.inc.php on line 911