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 (
    125, 126, 128, 124, 127, 154, 150, 149, 
    167, 166, 156, 161, 165, 158, 160, 162, 
    159, 164, 157, 155, 153, 151, 152, 163
  )

Query time 0.00150

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "84.01"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "gpf",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "rows_examined_per_scan": 24,
          "rows_produced_per_join": 24,
          "filtered": "100.00",
          "index_condition": "(`test_uchur_k`.`gpf`.`group_id` in (125,126,128,124,127,154,150,149,167,166,156,161,165,158,160,162,159,164,157,155,153,151,152,163))",
          "cost_info": {
            "read_cost": "14.41",
            "eval_cost": "2.40",
            "prefix_cost": "16.81",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "feature_id",
            "group_id"
          ]
        }
      },
      {
        "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": 96,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "24.00",
            "eval_cost": "9.60",
            "prefix_cost": "50.41",
            "data_read_per_join": "1K"
          },
          "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": 96,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "24.00",
            "eval_cost": "9.60",
            "prefix_cost": "84.01",
            "data_read_per_join": "74K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id",
            "lang_code"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
193 51083 1360 124
193 51084 1361 124
193 22715 1357 124
193 51082 1359 124
193 51085 1362 124
193 51081 1358 124
193 51088 1360 125
193 51087 1359 125
193 22713 1357 125
193 51086 1358 125
193 51089 1361 125
193 51090 1362 125
193 51094 1361 126
193 51092 1359 126
193 51093 1360 126
193 22714 1357 126
193 51091 1358 126
193 51095 1362 126
193 51096 1358 127
193 51097 1359 127
193 51098 1360 127
193 51100 1362 127
193 51099 1361 127
193 22716 1357 127
193 51104 1361 128
193 51103 1360 128
193 22712 1357 128
193 51105 1362 128
193 51102 1359 128
193 51101 1358 128
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 51211 1358 151
193 51210 1357 151
193 111 1374 151
193 51212 1359 151
193 144 1357 152
193 51215 1363 152
193 51214 1362 152
193 51213 1359 152
193 51444 1358 152
193 51445 1360 152
193 51446 1361 152
193 51447 1364 152
193 51220 1364 153
193 51219 1363 153
193 51218 1362 153
193 51217 1360 153
193 51216 1358 153
193 146 1357 153
193 51448 1359 153
193 51449 1361 153
193 51221 1358 154
193 137 1357 154
193 51224 1361 154
193 51223 1360 154
193 51222 1359 154
193 51231 1364 155
193 51230 1363 155
193 51229 1362 155
193 51228 1361 155
193 51227 1360 155
193 51226 1359 155
193 51225 1358 155
193 109 1357 155
193 51232 1358 156
193 12 1357 156
193 51238 1364 156
193 51237 1363 156
193 51236 1362 156
193 51235 1361 156
193 51234 1360 156
193 51233 1359 156
193 51243 1362 157
193 51242 1361 157
193 51241 1360 157
193 51240 1359 157
193 51239 1358 157
193 36 1357 157
193 51246 1360 158
193 51245 1359 158
193 51244 1358 158
193 35 1357 158
193 51248 1362 158
193 51247 1361 158
193 51253 1362 159
193 51252 1361 159
193 51251 1360 159
193 51250 1359 159
193 51249 1358 159
193 34 1357 159
193 51256 1360 160
193 51255 1359 160
193 51254 1358 160
193 33 1357 160
193 51257 1358 161
193 32 1357 161
193 51258 1359 161
193 51265 1364 162
193 51264 1363 162
193 51263 1362 162
193 51262 1361 162
193 51261 1360 162
193 51260 1359 162
193 51259 1358 162
193 110 1357 162
193 51272 1364 163
193 51271 1363 163
193 51270 1362 163
193 51269 1361 163
193 51268 1360 163
193 51267 1359 163
193 51266 1358 163
193 145 1357 163
193 51273 1358 164
193 147 1357 164
193 51277 1362 164
193 51276 1361 164
193 51275 1360 164
193 51274 1359 164
193 51281 1361 165
193 51280 1360 165
193 51279 1359 165
193 51278 1358 165
193 51282 1362 165
193 7 1357 165
193 51289 1364 166
193 51288 1363 166
193 51287 1362 166
193 51286 1361 166
193 51285 1360 166
193 51284 1359 166
193 51283 1358 166
193 8 1357 166
193 51294 1362 167
193 51293 1361 167
193 51292 1360 167
193 51291 1359 167
193 51290 1358 167
193 94 1357 167