Gave up trying to figure out semicolons - stripped them out of regular queries by hand