Fixed 'wrong argument number' error

Placeholder wasn't replaced, instead it created 'WHERE attribute_id = ? AND nnn'