On the debug I see:
SET sql_mode = 'STRICT_ALL_TABLES'
SELECT name, value FROM fly2_sys_prefs
SELECT value FROM fly2_sys_prefs WHERE name='version_id'
SELECT name, value FROM fly2_sys_prefs
SELECT * FROM fly2_fiscal_year WHERE '2022-01-27' >= begin AND '2022-01-27' <= end AND closed=0
SELECT COUNT(*) FROM (SELECT t.trans_no as trans_no ,t.reference as ref ,t.tran_date as trans_date, t.type as type FROM fly2_journal t LEFT JOIN fly2_voided v ON t.trans_no=v.id AND v.type='0' WHERE ISNULL(v.`memo_`) AND t.trans_no >= '1'
AND t.trans_no <= '999999' AND t.`type` = '0' GROUP BY t.type, t.trans_no ORDER BY t.trans_no DESC) tmp_count
SELECT t.trans_no as trans_no ,t.reference as ref ,t.tran_date as trans_date, t.type as type FROM fly2_journal t LEFT JOIN fly2_voided v ON t.trans_no=v.id AND v.type='0' WHERE (ISNULL(v.`memo_`) AND t.trans_no >= '1'
AND t.trans_no <= '999999' AND t.`type` = '0') GROUP BY t.type, t.trans_no ORDER BY t.trans_no DESC LIMIT 0, 10
SELECT * FROM fly2_fiscal_year WHERE '2022-12-31' >= begin AND '2022-12-31' <= end AND closed=0
SELECT * FROM fly2_fiscal_year WHERE '2021-12-31' >= begin AND '2021-12-31' <= end AND closed=0