That has the same result. I had tried that already, but I just tried it again to make sure I didn't miss anything.
I would use just one query the problem is that I am refromatting data. I am taking a phone number and splitting up the whole number in three smaller parts, then saving those numbers into three other fields in the same table.
If MySQL has a way to split up a number at each hyphen and save the results into three fields, I would love that.
But the issue is that I will have other sections where one query just has to be in the loop of the other.
I need to find out why this is happening. It only is an issue when the second query is in a loop.
If I take the second query out of the loop, both queries work fine.