Fixed a typo in 3 table selects.