I've solved the issue by simply replicating the database select and then performing an INSERT instead of putting it into a table. Simple solution, but as Erel often says in tutorials and videos, "if you replicate code then you're doing something wrong!"
So, even though I have found a workaround, the question still remains, 'Is there a better method?'