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 = 'en' 
  AND lang.name IN (
    'cannot_buy', 'no_products_selected', 
    'error_no_items_selected', 'delete_confirmation', 
    'text_out_of_stock', 'items', 'text_required_group_product', 
    'save', 'close', 'notice', 'warning', 
    'error', 'empty', 'text_are_you_sure_to_proceed', 
    'text_invalid_url', 'error_validator_email', 
    'error_validator_phone', 'error_validator_phone_mask', 
    'error_validator_phone_mask_with_phone', 
    'error_validator_phone_phone_number_with_country_selection', 
    'error_validator_integer', 'error_validator_multiple', 
    'error_validator_password', 'error_validator_required', 
    'error_validator_zipcode', 'error_validator_message', 
    'text_page_loading', 'error_ajax', 
    'text_changes_not_saved', 'text_data_changed', 
    'placing_order', 'order_was_not_placed', 
    'file_browser', 'browse', 'more', 
    'text_no_products_found', 'cookie_is_disabled', 
    'insert_image', 'image_url', 'loading', 
    'js_validator_not_valid_text_field', 
    'text_editing', 'save', 'cancel', 
    'cannot_buy', 'no_products_selected', 
    'error_no_items_selected', 'delete_confirmation', 
    'text_out_of_stock', 'items', 'text_required_group_product', 
    'save', 'close', 'notice', 'warning', 
    'error', 'empty', 'text_are_you_sure_to_proceed', 
    'text_invalid_url', 'error_validator_email', 
    'error_validator_phone', 'error_validator_phone_mask', 
    'error_validator_phone_mask_with_phone', 
    'error_validator_phone_phone_number_with_country_selection', 
    'error_validator_integer', 'error_validator_multiple', 
    'error_validator_password', 'error_validator_required', 
    'error_validator_zipcode', 'error_validator_message', 
    'text_page_loading', 'error_ajax', 
    'text_changes_not_saved', 'text_data_changed', 
    'placing_order', 'order_was_not_placed', 
    'file_browser', 'browse', 'more', 
    'text_no_products_found', 'cookie_is_disabled', 
    'insert_image', 'image_url', 'loading', 
    'js_validator_not_valid_text_field', 
    'text_editing', 'save', 'cancel'
  )

Query time 0.00341

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.11375776,
    "nested_loop": [
      {
        "table": {
          "table_name": "lang",
          "access_type": "range",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "392",
          "used_key_parts": ["lang_code", "name"],
          "loops": 1,
          "rows": 43,
          "cost": 0.07447764,
          "filtered": 100,
          "attached_condition": "lang.lang_code = 'en' and lang.`name` in ('cannot_buy','no_products_selected','error_no_items_selected','delete_confirmation','text_out_of_stock','items','text_required_group_product','save','close','notice','warning','error','empty','text_are_you_sure_to_proceed','text_invalid_url','error_validator_email','error_validator_phone','error_validator_phone_mask','error_validator_phone_mask_with_phone','error_validator_phone_phone_number_with_country_selection','error_validator_integer','error_validator_multiple','error_validator_password','error_validator_required','error_validator_zipcode','error_validator_message','text_page_loading','error_ajax','text_changes_not_saved','text_data_changed','placing_order','order_was_not_placed','file_browser','browse','more','text_no_products_found','cookie_is_disabled','insert_image','image_url','loading','js_validator_not_valid_text_field','text_editing','save','cancel','cannot_buy','no_products_selected','error_no_items_selected','delete_confirmation','text_out_of_stock','items','text_required_group_product','save','close','notice','warning','error','empty','text_are_you_sure_to_proceed','text_invalid_url','error_validator_email','error_validator_phone','error_validator_phone_mask','error_validator_phone_mask_with_phone','error_validator_phone_phone_number_with_country_selection','error_validator_integer','error_validator_multiple','error_validator_password','error_validator_required','error_validator_zipcode','error_validator_message','text_page_loading','error_ajax','text_changes_not_saved','text_data_changed','placing_order','order_was_not_placed','file_browser','browse','more','text_no_products_found','cookie_is_disabled','insert_image','image_url','loading','js_validator_not_valid_text_field','text_editing','save','cancel')"
        }
      },
      {
        "table": {
          "table_name": "cscart_ult_language_values",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "396",
          "used_key_parts": ["lang_code", "name", "company_id"],
          "ref": ["lvshop.lang.lang_code", "lvshop.lang.name", "const"],
          "loops": 43,
          "rows": 1,
          "cost": 0.03928012,
          "filtered": 100
        }
      }
    ]
  }
}

Result

name value
browse Browse...
cancel Cancel
cannot_buy You cannot buy the product with these option variants
close Close
cookie_is_disabled For a complete shopping experience, please <a href="https://www.wikihow.com/Enable-Cookies-in-Your-Internet-Web-Browser" target="_blank">set your browser to accept cookies</a>
delete_confirmation Are you sure you want to delete the selected items?
empty Empty
error Error
error_ajax Oops, something went wrong ([error]). Please try again.
error_no_items_selected No items selected! At least one check box must be selected to perform this action.
error_validator_email The email address in the <b>[field]</b> field is invalid.
error_validator_integer The value of the <b>[field]</b> field is invalid. It should be integer.
error_validator_message The value of the <b>[field]</b> field is invalid.
error_validator_multiple The <b>[field]</b> field does not contain the selected options.
error_validator_password The passwords in the <b>[field2]</b> and <b>[field]</b> fields do not match.
error_validator_phone The phone number in the <b>[field]</b> field is invalid. The correct format is +16175555555.
error_validator_phone_mask The phone number in the <b>[field]</b> field is invalid.
error_validator_phone_mask_with_phone The phone number <b>[phone]</b> is invalid.
error_validator_phone_phone_number_with_country_selection The phone number is invalid
error_validator_required The <b>[field]</b> field is mandatory.
error_validator_zipcode The ZIP / Postal code in the <b>[field]</b> field is incorrect. The correct format is [extra].
file_browser File browser
image_url Image URL
insert_image Insert image
items item(s)
js_validator_not_valid_text_field Only letters, spaces, apostrophes and dashes allowed.
loading Loading...
more More
no_products_selected No products selected
notice Notice
order_was_not_placed Order was not placed
placing_order Placing the order
save Save
text_are_you_sure_to_proceed Are you sure you want to proceed?
text_changes_not_saved Your changes have not been saved.
text_data_changed Your changes have not been saved.Press OK to continue, or Cancel to stay on the current page.
text_editing Text editing
text_invalid_url You have entered an invalid URL
text_no_products_found No products found
text_out_of_stock Out of stock
text_page_loading Loading... Your request is being processed, please wait.
text_required_group_product Please select a product for the required group [group_name]
warning Warning