CREATE TABLE table_name_42 (election VARCHAR(255))
Which 1st Party has an Election of 1849 by-election?
    
SQL: SELECT 1 AS st_party FROM table_name_42 WHERE election = "1849 by-election"