fix sql syntax error
Command line feature: show the currently used index/alias