I'm trying to get the raw sql query Magento is running on the database to select the data for the report grid. I can print the collection query string with
$collection->getSelect()->__toString()
but this does not contain the filters. But I need the query with filters. Thanks for any help