Update thread.php

replaced new Thread($row) by new self($row)