How to avoid executing mysql queries in nested loop?

Printable View