Fixed 'wrong argument number' error

Placeholder wasn't replaced, instead it created 'WHERE attribute_id = ? AND nnn'
removed brackets
Merge pull request #3 from riconeitzel/patch-1

Fixed 'wrong argument number' error