PROV-651 Fix sql issue w/some version of MySQL