Fix NAMES command syntax