Palace's hard-earned victory through Jean-Philippe Mateta's second-half winner denied fellow strugglers Ipswich a first home win of the season and kept the Tractor Boys in the bottom three.