SQL-DATABASE ERROR

Database error in WoltLab Burning Board: Invalid SQL: SELECT bb1_events.*, bb1_groups.chgpermission, bb1_cal_cats.*, bb1_events_ret.* FROM bb1_events LEFT JOIN bb1_users ON (bb1_users.userid = bb1_events.userid) LEFT JOIN bb1_groups ON (bb1_groups.groupid = bb1_events.groupid) LEFT JOIN bb1_events_ret ON (bb1_events.eventid = bb1_events_ret.eventid) LEFT JOIN bb1_cal_cats ON (bb1_events.catid = bb1_cal_cats.catid) WHERE (public='1' AND ((FIND_IN_SET('5',e.permission)>0 OR e.permission='') AND FIND_IN_SET('5',g.chgpermission)>0) OR bb1_events.userid = 0) AND ((ret_enddate>='2024-12-01' OR ret_enddate<=eventdate) AND eventdate<='2024-12-31' AND (MOD(PERIOD_DIFF(DATE_FORMAT(bb1_events.eventdate,'%y%m'),202412),retval)=0 AND retmode='month' OR (MOD(PERIOD_DIFF(DATE_FORMAT(bb1_events.eventdate,'%y%m'),202412),(retval*12))=0 AND retmode='year') OR retmode!='year' AND retmode!='month') OR MONTH(eventdate)='12' AND YEAR(eventdate)='2024' AND bb1_events_ret.retmode IS NULL)
mysql error: Unknown column 'e.permission' in 'where clause'
mysql error number: 1054
Date: 11.12.2024 @ 05:41
Script: /calendar.php?sid=7a721c74081ce7e36eb4625e7aa80f5c
Referer: