MDL-45763 quiz Reuse available random questions.

Fix the sql parameter to properly match.