SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  gp.group_id 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_variation_group_products AS gp ON pfv.product_id = gp.product_id 
  INNER JOIN cscart_product_variation_group_features AS gpf ON gpf.group_id = gp.group_id 
  AND gpf.feature_id = pfv.feature_id 
WHERE 
  pfv.lang_code = 'ru' 
  AND gp.group_id IN (
    154, 248, 184, 235, 233, 187, 253, 138, 
    189, 243, 134, 234, 142, 137, 150, 188, 
    183, 35, 186, 185, 149, 205, 136, 135, 
    123, 122, 180, 208, 224, 207, 218
  )

Query time 0.00143

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "126.94"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "gpf",
          "access_type": "index",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "feature_id",
            "group_id"
          ],
          "key_length": "6",
          "rows_examined_per_scan": 141,
          "rows_produced_per_join": 40,
          "filtered": "28.37",
          "using_index": true,
          "cost_info": {
            "read_cost": "10.94",
            "eval_cost": "4.00",
            "prefix_cost": "14.94",
            "data_read_per_join": "4K"
          },
          "used_columns": [
            "feature_id",
            "group_id"
          ],
          "attached_condition": "(`test_uchur_k`.`gpf`.`group_id` in (154,248,184,235,233,187,253,138,189,243,134,234,142,137,150,188,183,35,186,185,149,205,136,135,123,122,180,208,224,207,218))"
        }
      },
      {
        "table": {
          "table_name": "gp",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "ref": [
            "test_uchur_k.gpf.group_id"
          ],
          "rows_examined_per_scan": 4,
          "rows_produced_per_join": 160,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "40.00",
            "eval_cost": "16.00",
            "prefix_cost": "70.94",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "product_id",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "fpl",
          "used_key_parts": [
            "feature_id",
            "product_id",
            "lang_code"
          ],
          "key_length": "12",
          "ref": [
            "test_uchur_k.gpf.feature_id",
            "test_uchur_k.gp.product_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 160,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "40.00",
            "eval_cost": "16.00",
            "prefix_cost": "126.94",
            "data_read_per_join": "123K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id",
            "lang_code"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
3 82 6 35
193 51076 1364 122
193 51073 1361 122
193 51072 1360 122
193 51074 1362 122
193 51075 1363 122
193 22711 1359 122
193 22710 1358 123
193 51077 1359 123
193 51080 1362 123
193 51078 1360 123
193 51079 1361 123
193 51132 1360 134
193 51131 1359 134
193 51134 1362 134
193 51133 1361 134
193 51130 1358 134
193 41 1357 134
193 51139 1362 135
193 51138 1361 135
193 51137 1360 135
193 51136 1359 135
193 51135 1358 135
193 40 1357 135
193 51144 1362 136
193 51143 1361 136
193 51142 1360 136
193 51141 1359 136
193 51140 1358 136
193 39 1357 136
193 51146 1359 137
193 51145 1358 137
193 38 1357 137
193 51148 1361 137
193 51147 1360 137
193 51151 1362 138
193 51150 1361 138
193 51149 1358 138
193 37 1357 138
193 51169 1368 142
193 51168 1367 142
193 51167 1366 142
193 51166 1365 142
193 90 1371 142
193 51171 1370 142
193 51170 1369 142
193 51205 1360 149
193 51204 1359 149
193 51203 1358 149
193 51202 1374 149
193 125 1357 149
193 51209 1360 150
193 51208 1359 150
193 51207 1358 150
193 51206 1374 150
193 124 1357 150
193 51221 1358 154
193 137 1357 154
193 51224 1361 154
193 51223 1360 154
193 51222 1359 154
193 17 1373 180
193 56 1373 183
193 126 1373 184
193 51295 1376 185
193 117 1375 185
193 116 1375 186
193 115 1375 187
193 81 1373 188
193 11 1373 189
193 106 1373 205
193 58 1373 207
193 57 1373 208
193 5 1373 218
193 51349 1386 224
193 122 1385 224
193 51357 1357 233
193 79 1374 233
193 51360 1360 233
193 51359 1359 233
193 51358 1358 233
193 51361 1358 234
193 30 1357 234
193 51362 1359 234
193 51363 1360 234
193 51364 1361 234
193 51365 1362 234
193 31 1357 235
193 51366 1358 235
193 51367 1359 235
193 51368 1360 235
193 51369 1361 235
193 140 1357 243
193 51385 1358 243
193 51386 1359 243
193 51387 1360 243
193 51388 1361 243
193 51389 1362 243
193 88 1358 248
193 51395 1359 248
193 51396 1361 248
193 51397 1362 248
193 51555 1357 248
193 51556 1360 248
193 80 1390 253
193 51398 1391 253
193 51399 1392 253