Having sql issues after updating

After updating from v8 to v11 i am getting this error when adding filters to the search.

ProgrammingError: (1064, u"You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and `tabLeave Application`.docstatus = '0'' at line 6")