I\'d need to create a temporary table in mysql via a stored procedure with a variable number of columns and insert data from a table into it.
Thats the gist of it, now a