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>='2019-10-01' OR ret_enddate<=eventdate) AND eventdate<='2019-10-31' AND (MOD(PERIOD_DIFF(DATE_FORMAT(e.eventdate,'%y%m'),201910),retval)=0 AND retmode='month' OR (MOD(PERIOD_DIFF(DATE_FORMAT(e.eventdate,'%y%m'),201910),(retval*12))=0 AND retmode='year') OR retmode!='year' AND retmode!='month') OR MONTH(eventdate)='10' AND YEAR(eventdate)='2019' AND re.retmode IS NULL)
mysql error: Table 'd007f858.bb1_events_ret' doesn't exist
mysql error number: 1146
Date: 20.10.2019 @ 23:30
Script: /calender.php
Referer: