[Bug Fix] SQL compliance issue

1, Change one SQL in testtype table.
2, Change one SQL in phase table.