ok, I did some more research on this, and I realize that it's because magic_quotes_sybase is set to on in the php config. This escapes a single quote with another single quote, which is nessessary because they're running mssql queries, which require single quotes to be escaped this way.
Thanks.