Fix bug in PHP Statement