Er thats why I dont use store procedures, its a lot easier to write PHP to do all the queries and calculations