SELECT 
  cscart_ab__stickers.*, 
  descriptions.*, 
  images.image_id, 
  cscart_ab__stickers.sticker_id as sticker_id 
FROM 
  cscart_ab__stickers 
  LEFT JOIN cscart_ab__sticker_descriptions as descriptions ON cscart_ab__stickers.sticker_id = descriptions.sticker_id 
  AND descriptions.lang_code = 'nl' 
  LEFT JOIN cscart_ab__sticker_images AS images ON cscart_ab__stickers.sticker_id = images.sticker_id 
  AND images.lang_code = 'nl' 
WHERE 
  FIND_IN_SET (1, storefront_ids) 
  AND cscart_ab__stickers.status = 'A' 
  AND (
    (
      cscart_ab__stickers.from_date <= 1733950800 
      OR cscart_ab__stickers.from_date = 0
    ) 
    AND (
      cscart_ab__stickers.to_date >= 1733950800 
      OR cscart_ab__stickers.to_date = 0
    )
  ) 
  AND (
    (
      cscart_ab__stickers.sticker_id IN (0)
    ) 
    OR cscart_ab__stickers.type = 'D'
  ) 
  AND cscart_ab__stickers.display_on_detailed_pages != "not_display" 
  AND (
    cscart_ab__stickers.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_ab__stickers.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_ab__stickers.usergroup_ids
    )
  ) 
ORDER BY 
  cscart_ab__stickers.position asc

Query time 0.00060

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "4.68"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_ab__stickers",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "c_status"
            ],
            "key": "c_status",
            "used_key_parts": [
              "status"
            ],
            "key_length": "3",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 6,
            "rows_produced_per_join": 0,
            "filtered": "3.33",
            "index_condition": "((`eshopuga_upgr_4122`.`cscart_ab__stickers`.`status` <=> 'A') and ((`eshopuga_upgr_4122`.`cscart_ab__stickers`.`usergroup_ids` = '') or find_in_set(0,`eshopuga_upgr_4122`.`cscart_ab__stickers`.`usergroup_ids`) or find_in_set(1,`eshopuga_upgr_4122`.`cscart_ab__stickers`.`usergroup_ids`)))",
            "cost_info": {
              "read_cost": "3.00",
              "eval_cost": "0.04",
              "prefix_cost": "4.20",
              "data_read_per_join": "513"
            },
            "used_columns": [
              "sticker_id",
              "storefront_ids",
              "usergroup_ids",
              "position",
              "status",
              "name_for_admin",
              "type",
              "style",
              "display_on_lists",
              "display_on_detailed_pages",
              "output_position_list",
              "output_position_detailed_page",
              "appearance",
              "conditions",
              "from_date",
              "to_date",
              "last_update_time"
            ],
            "attached_condition": "(find_in_set(1,`eshopuga_upgr_4122`.`cscart_ab__stickers`.`storefront_ids`) and ((`eshopuga_upgr_4122`.`cscart_ab__stickers`.`from_date` <= 1733950800) or (`eshopuga_upgr_4122`.`cscart_ab__stickers`.`from_date` = 0)) and ((`eshopuga_upgr_4122`.`cscart_ab__stickers`.`to_date` >= 1733950800) or (`eshopuga_upgr_4122`.`cscart_ab__stickers`.`to_date` = 0)) and ((`eshopuga_upgr_4122`.`cscart_ab__stickers`.`sticker_id` = 0) or (`eshopuga_upgr_4122`.`cscart_ab__stickers`.`type` = 'D')) and (`eshopuga_upgr_4122`.`cscart_ab__stickers`.`display_on_detailed_pages` <> 'not_display'))"
          }
        },
        {
          "table": {
            "table_name": "descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "sticker_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "eshopuga_upgr_4122.cscart_ab__stickers.sticker_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.20",
              "eval_cost": "0.04",
              "prefix_cost": "4.44",
              "data_read_per_join": "312"
            },
            "used_columns": [
              "sticker_id",
              "lang_code",
              "name_for_desktop",
              "name_for_mobile",
              "description"
            ]
          }
        },
        {
          "table": {
            "table_name": "images",
            "access_type": "eq_ref",
            "possible_keys": [
              "sticker"
            ],
            "key": "sticker",
            "used_key_parts": [
              "sticker_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "eshopuga_upgr_4122.cscart_ab__stickers.sticker_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "using_index": true,
            "cost_info": {
              "read_cost": "0.20",
              "eval_cost": "0.04",
              "prefix_cost": "4.68",
              "data_read_per_join": "3"
            },
            "used_columns": [
              "image_id",
              "sticker_id",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}