Basically, it has to do with either a linked server you're trying to hit or a distributed view, or something of that sort on the MS SQL side and has nothing to do with your PHP script itself. Please post more details about the query itself, otherwise it's hard to say what exactly is going on.