SQL Fix after 933381f

Everything is self explaining I guess. After 933381f, which contains faulty SQL, this is fixing it. Just a rename, nothing major.