Fixed select statement for sanity test.