Using Perl:
$ perl -F, -wane 'print "$F[0],$F[-1]"' your_file > new_file
Also you could use sed since you don't care about anything in the middle, that's essentially everything in between the 2 outside commas, you can do this:
$ sed 's/,.*,/,/g' your_file > new_file