No sections for the given page title.
SELECT comments, pages.title AS pages_title, sections.title AS sections_title, sections.id AS sections_id, sections.type AS sections_type, sections.url AS sections_url FROM sections
LEFT JOIN pages ON pages.id = sections.pages_id
WHERE pages.active = 1
AND sections.active = 1
AND pages.url = "index"
AND pages.type = "pages"
ORDER BY sections.position
;