Fix for SQL Script

Doesn't work in newer MySQL