Yes this is live, the user running it only has access to the temp data in that table via select. The data this script pulls is only temp data till I figure out why I can't pull the query string ,which I guess I have to do on my own since people here just seem to want to do nothing but bash my code instead of suggesting ways to fix my problem.
Calling this via SSI is a protection, the user can't easly find the URL and the permssions on the site are set so once the script works it can not be called direcly from the browser but must be called within code.