adding "(" sign check to getFieldsSql