I am running into an interesting problem for which I can\'t find a solution yet.
We are running the following code against a MySQL database. The goal of the code is t