Ipswich recorded their first Premier League win of the season with a shock 2-1 win over sloppy and lacklustre Tottenham.