query formatting even when no columns were specified