https://khactung.com/develop/debug-sql-in-magento/
Debug sql in Magento