Unable to Delete Journal Entry Due to 'parenttype' Column Error

I have an issue with my Journal Entry. When I create a Journal Entry and then try to delete it, it is not getting deleted, and it shows an error:
‘Server Error: pymysql.err.OperationalError: (1054, “Unknown column ‘parenttype’ in ‘SELECT’”)’.
Why is this happening? I can’t delete any Journal Entry, and because of this, the ledger is wrong.
How can I solve this? . Please Help Anyone