Boris Johnson's Conservative government has suffered two blows in the Commons as MPs rejected his call to vote for an early general election.

MPs also backed a bill aimed at avoiding a no-deal Brexit.

To see how your MP voted use the look-up below.

Please upgrade your browser to view this interactive Did your MP vote in favour of allowing the government to suspend Parliament in order to secure Brexit on 30 October? Enter a postcode, or the name or constituency of your MP Seat vacant

Click here if you cannot see the look-up. Data from Commons Votes Services.

The prime minister's call for an early general election was rejected by MPs when it failed to reach the two thirds majority required under the Fixed Term Parliaments Act.

MPs have also voted for a bill aimed at blocking a no-deal Brexit, the vote was won by 327 to 299.

The bill would force the prime minister to ask the European Union for a delay to Brexit to prevent the UK's departure without a deal.

To find out how your MP voted, use the look-up below.

Please upgrade your browser to view this interactive Did your MP vote in favour of allowing the government to suspend Parliament in order to secure Brexit on 30 October? Enter a postcode, or the name or constituency of your MP Seat vacant

Click here if you cannot see the look-up. Data from Commons Votes Services.

Conservative MP Dame Caroline Spelman voted alongside the Conservative rebels who were expelled on Tuesday for voting against the government, while Brexit-supporting Kate Hoey was the only Labour member to vote with the government.

The measure must now be approved by the House of Lords. If peers pass the bill it could postpone the UK's departure from the European Union until 31 January 2020, if by 19 October this year MPs have not approved a new deal or voted in favour of a no-deal exit.

During the debate on the bill it was amended, so that during a Brexit extension Parliament has to vote on a version of the former prime minister Theresa May's withdrawal agreement.