Fix issue in filtering history by user (bindValue)