On Fri, 02 Nov 2007 23:23:41 +0530
Fact 3: App was probably coded in the PHP4 environment
( this is
actually an inference that I'm making out of your statements )
Fact 4: See 
Fact 5: PHP5 breaks many PHP4 apps :P
Fact 6: MySQL5 also is responsible for breaking stuff coded for MySQL4
( please read the release notes for further info ;) )
I hope you can understand what I'm getting at. Your app is probably
behaving weirdly because of the incompatibilities between PHP4 and
PHP5. I suspect MySQL ain't the source of the problem.
If I remember right, he said the same is working fine from outside.