Added `WHERE` clause to prepare SELECT, and updated tests to pass.