I'm running into database errors when running a query via php and pdo. It runs fine on SQL Server, but not through my php application.
You can see the query that is failing here http://stackoverflow.com/questions/27262644/how-can-i-troubleshoot-a-raw-mssql-query-that-runs-fine-on-sql-server-but-fails
I'm at my wits end. I need to be able to execute this query for a project which I am urgently completing, however no matter what I do, it is failing in PHP.