This is how creit card companies get their money and ruin your life. The balance of the payment goes to the lowest interest total first:

Yes I know cash advances are evil. Well, so is accidentally putting a new computer on your debit card and the bank merrily processing it, then racking up something like 200 dollars in overdraft fees. If you have a debit card, don’t get overdraft protection, but rather have them set up a hard-limit on your account so they must check the account before approving a charge.
Oh, and if it’s not evident (my fault). I made the payment of $750 after the $700 cash advance was made. Yep, it’s that evil.