Fix MySQL specific quoting and CONCAT()
Merge remote-tracking branch 'MorrisR2/compatible_sql' into MMCC