SQL-DATABASE ERROR

Database error in WoltLab Burning Board (2.3.6): Invalid SQL: SELECT t.*, v.id AS isvoted FROM bb1_threads t LEFT JOIN bb1_votes v ON (v.id=t.threadid AND v.votemode=2 AND v.ipaddress='107.22.17.220') WHERE t.threadid = '5783'
mysql error: Unknown column 'v.votemode' in 'on clause'
mysql error number: 1054
mysql version: 5.1.73-log
php version: 5.6.30
Date: 23.06.2017 @ 10:45
Script: /thread.php?threadid=5783&sid=889266f5fc419b36f53acd270cedfd3c
Referer: