In addition to M+E, I was happy to have Water Quality by Tchobanoglous and Schroeder. (Tchobanaglous is the main author of the M&E book.) It covers both water and wastewater treatment, a number of other topics, and it covers a lot of basic theory.