Got the data I need. Just was using the wrong syntax for php. Testing it out now to make sure it changes all the tables it needs to.