Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE table_12845 ( "Election" text, "1st Member" text, "1st Party" text, "2nd Member" text, "2nd Party" text )

### Question ###
Which 1st Party has a 2nd Member of william rawson shaw, and a 1st Member of sir james stansfeld?

### Accurate SQL ###

SELECT "1st Party" FROM table_12845 WHERE "2nd Member" = 'william rawson shaw' AND "1st Member" = 'sir james stansfeld'