The command which includes column names is defined under query object at step 1. At step 4 it says 'studentmath = pd.read_sql(sqlselect,connmysql)'. 'sqlselect' inside the parenthesis should be replaced with 'query'.