Fix MySQL Issue

This is a fix to issue number 1204 for MySQL