fix sql errors highlighted by mysql strict settings
Merge pull request #23 from extension/fix_sync_errors

fix sql errors highlighted by mysql strict settings