Fixed some syntax errors in the GET_PART_TYPE query.