I have the following collection and want to view the raw SQL within my IDE Xdebug tool -
$collection = Mage::getResourceModel('rp/organisation_collection')
->searchByPostcodeLastname($postcode, Slastname)
->addFieldToSelect(array('organisation_id'))
->setPageSize(1);
$qry = $organisation->load()->getSelect();
This while does show the Varien object doesn't seem to give me the raw SQL for me to check - can someone confirm what I am doing wrong?
limits
andfilters
are not pritned – Chaos