SELECT * FROM cms_settings 
WHERE CONCAT(';',setting_show_in_templates,';') LIKE CONCAT('%;',:template_name,';%')
JOIN cms_nodes ON setting_node_id = node_id
LEFT JOIN cms_junctions ON 