Fix cactiSettings sql syntax error