Fixing error in SQL header