Fixes #24 by changing an AND to a WHERE.