SELECT
lang.name,
IF(
cscart_ult_language_values.value IS NULL,
lang.value, cscart_ult_language_values.value
) as value
FROM
cscart_language_values lang
LEFT JOIN cscart_ult_language_values ON cscart_ult_language_values.name = lang.name
AND company_id = 1
AND cscart_ult_language_values.lang_code = lang.lang_code
WHERE
lang.lang_code = 'ru'
AND lang.name IN (
'gdpr.klaro_accept_all', 'gdpr.klaro_accept_selected',
'gdpr.klaro_close', 'gdpr.klaro_consent_modal_description',
'gdpr.klaro_consent_modal_title',
'gdpr.klaro_consent_notice_change_description',
'gdpr.klaro_consent_notice_title',
'gdpr.klaro_consent_notice_description',
'gdpr.klaro_consent_notice_learn_more',
'gdpr.klaro_consent_notice_testing',
'gdpr.klaro_contextual_consent_accept_always',
'gdpr.klaro_contextual_consent_accept_once',
'gdpr.klaro_contextual_consent_description',
'gdpr.klaro_decline', 'gdpr.klaro_ok',
'gdpr.klaro_powered_by', 'gdpr.klaro_privacy_policy_title',
'gdpr.klaro_privacy_policy_name',
'gdpr.klaro_service', 'gdpr.klaro_services',
'gdpr.strictly_necessary_cookies_title',
'gdpr.strictly_necessary_cookies_description',
'gdpr.performance_cookies_title',
'gdpr.performance_cookies_description',
'gdpr.functional_cookies_title',
'gdpr.functional_cookies_description',
'gdpr.marketing_cookies_title',
'gdpr.marketing_cookies_description',
'gdpr.klaro_service_purpose', 'gdpr.klaro_service_purposes',
'gdpr.klaro_service_required_description',
'gdpr.eway_cookies_title', 'gdpr.eway_cookies_description',
'gdpr.disable_all_description',
'gdpr.disable_all_title', 'gdpr.opt_out_description',
'gdpr.opt_out_title', 'gdpr.klaro_service_required_title',
'gdpr.uk_cookies_law', 'gdpr.site_functionality_cookies_title',
'gdpr.site_functionality_cookies_description',
'gdpr.klaro_accept_all', 'gdpr.klaro_accept_selected',
'gdpr.klaro_close', 'gdpr.klaro_consent_modal_description',
'gdpr.klaro_consent_modal_title',
'gdpr.klaro_consent_notice_change_description',
'gdpr.klaro_consent_notice_title',
'gdpr.klaro_consent_notice_description',
'gdpr.klaro_consent_notice_learn_more',
'gdpr.klaro_consent_notice_testing',
'gdpr.klaro_contextual_consent_accept_always',
'gdpr.klaro_contextual_consent_accept_once',
'gdpr.klaro_contextual_consent_description',
'gdpr.klaro_decline', 'gdpr.klaro_ok',
'gdpr.klaro_powered_by', 'gdpr.klaro_privacy_policy_title',
'gdpr.klaro_privacy_policy_name',
'gdpr.klaro_service', 'gdpr.klaro_services',
'gdpr.strictly_necessary_cookies_title',
'gdpr.strictly_necessary_cookies_description',
'gdpr.performance_cookies_title',
'gdpr.performance_cookies_description',
'gdpr.functional_cookies_title',
'gdpr.functional_cookies_description',
'gdpr.marketing_cookies_title',
'gdpr.marketing_cookies_description',
'gdpr.klaro_service_purpose', 'gdpr.klaro_service_purposes',
'gdpr.klaro_service_required_description',
'gdpr.eway_cookies_title', 'gdpr.eway_cookies_description',
'gdpr.disable_all_description',
'gdpr.disable_all_title', 'gdpr.opt_out_description',
'gdpr.opt_out_title', 'gdpr.klaro_service_required_title',
'gdpr.uk_cookies_law', 'gdpr.site_functionality_cookies_title',
'gdpr.site_functionality_cookies_description'
)