I'm creating a SQL query with PDO in PHP. Unfortunately, there seems to be an error in my query. I've tried $query->errorInfo(),
but that only gives me a little bit of the error message ("There is an error in your syntax near...").
How can I display the entire query that PDO is passing to my database?
TIA.