You really need to show the full, exact text of the error from the database as well as the SQL run by both apps and relevant details of table structures.