No rows found, nothing to print so exiting SELECT cms_document.did, cms_document.sid, cms_document.name, cms_document.title, cms_document.template, cms_document.description, cms_document.keywords, cms_document.text1, cms_document.text2, cms_document.text3, cms_document.text4, cms_document.text5, cms_document.page_mode, cms_sections.sid, cms_sections.title as section, cms_sections.display from cms_document, cms_sections where cms_document.did = 24 and cms_document.sid = cms_sections.sid