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 /mnt/web317/d3/27/54228827/htdocs/bilder/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 /mnt/web317/d3/27/54228827/htdocs/bilder/include/dblayer/functions_mysqli.inc.php on line 845
Fatal error: Call to a member function fetch_assoc() on a non-object in /mnt/web317/d3/27/54228827/htdocs/bilder/include/dblayer/functions_mysqli.inc.php on line 911