Go back to your table design, by the sounds of it. When I see Sun1, Sun2, Sun3, etc then it's indicative of a design flaw in your tables. Ditto the idea of having 34 queries.
I have this horrible mental image of you having created some sort of matrix (days v classes) in an Excel style out of a...