Improve compatibility with different MySQL versions
Merge pull request #53 from SemanticMediaWiki/sqlcompat

Improve compatibility with different MySQL versions