human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Year, 1st Member, 1st Party, 2nd Member, 2nd Party
###Question: In 1865, what was the first party?
gpt
SELECT 1st Party FROM table WHERE Year = 1865