Why is it that this queryselect tm_date, sum(tm_hours) hours, (8 / sum(tm_hours) ) num_employees FROM easy_timesheet_hoursgroup by tm_date
will return a result set but this one, using the "hours" column name does not?select tm_date, sum(tm_hours) hours, (8 / hours) num_employees FROM easy_timesheet_hoursgroup by tm_date
I'm sure I've done this with MySQL before. Is there some option i need to set to enable this behavior? I'm doing something similar with sub selects instead of the simple sum function and this feature would be great to have.