Fixed wrong syntax when no columns are set