SQL-DATABASE ERROR

Database error in WoltLab Burning Board: Invalid SQL: SELECT e.*, g.chgpermission, cc.*, re.* FROM bb1_events e LEFT JOIN bb1_users u USING (userid) LEFT JOIN bb1_groups g USING (groupid) LEFT JOIN bb1_events_ret re ON (e.eventid=re.eventid) LEFT JOIN bb1_cal_cats cc ON (e.catid=cc.catid) WHERE (public='1' AND ((FIND_IN_SET('5',e.permission)>0 OR e.permission='') AND FIND_IN_SET('5',g.chgpermission)>0) OR e.userid=0) AND ((ret_enddate>='2021-09-01' OR ret_enddate<=eventdate) AND eventdate<='2021-09-30' AND (MOD(PERIOD_DIFF(DATE_FORMAT(e.eventdate,'%y%m'),20219),retval)=0 AND retmode='month' OR (MOD(PERIOD_DIFF(DATE_FORMAT(e.eventdate,'%y%m'),202109),(retval*12))=0 AND retmode='year') OR retmode!='year' AND retmode!='month') OR MONTH(eventdate)='9' AND YEAR(eventdate)='2021' AND re.retmode IS NULL)
mysql error: Table 'd007f858.bb1_events_ret' doesn't exist
mysql error number: 1146
Date: 21.09.2021 @ 00:30
Script: /calender.php?sid=f919c3c04b30b3e4abb9a7ffee526b72
Referer: