Error associating project to Sales Order (You have an error in your SQL syntax)

hi team when try to associate a project to sales order give me an error

pymysql.err.ProgrammingError: (1064, "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 ((((coalesce(tabProject.company, '')='' or tabProject.company in ('C' at line 5")

Any Help im using v 13.1

Regards