Bugfix SQL bug more than one row returned by a subquery

when more than one school and numbered days
Fix #58