Report generation is failing with Database error: [MySQL][ODBC 5.1