Fixed bug where WHERE conditions were duplicated
added extra comment