SELECT P.page_id, P.lang_id FROM cms_pages_names P LEFT JOIN cms_languages L USING(lang_id) WHERE P.web_default = '1' AND L.web_default = '1'

No database selected

SELECT lang_id FROM cms_languages WHERE web_default = '1'

No database selected

SELECT * FROM cms_languages WHERE lang_id = ''

No database selected

SELECT * FROM cms_sysconfig_items

No database selected

SELECT M.module_class FROM cms_template_modules TM LEFT JOIN cms_modules M USING(module_id) LEFT JOIN cms_body_templatelocs L ON (L.loc_id = TM.loc_id) WHERE TM.page_id = '' AND L.loc_name = 'content' ORDER BY TM.priority LIMIT 1

No database selected

SELECT * FROM cms_body_templates WHERE template_default = '1'

No database selected

SELECT M.*,O.* FROM cms_template_modules TM LEFT JOIN cms_modules M USING(module_id) LEFT JOIN cms_module_objects O ON(O.object_id = TM.object_id) WHERE (TM.page_id = '0' OR TM.page_id = '0') GROUP BY TM.module_id

No database selected

SELECT * FROM cms_body_templatelocs

No database selected

SELECT * FROM cms_dict_strings AS DS LEFT JOIN cms_dict_translation AS DT ON (DS.string_id = DT.string_id AND DT.lang_id = '') LEFT JOIN cms_dict_module_rel MR ON (MR.dict_id = DS.dict_id) WHERE active = '1' GROUP BY DS.string_id

No database selected