Yes, I would go with your...uh...bold suggestion. As posted above, it makes no sense to run the query in a loop. What exactly do you need help with, then?

PHP and MySQL calendar issue
I've seen several different descriptors for disc brake pads: Metallic, Semi-Metallic, and Organic.  What is the difference between these types of disc brake pads?
