SELECT 
  cscart_products_categories.product_id, 
  GROUP_CONCAT(
    IF(
      cscart_products_categories.link_type = "M", 
      CONCAT(
        cscart_products_categories.category_id, 
        "M"
      ), 
      cscart_products_categories.category_id
    )
  ) AS category_ids, 
  product_position_source.position AS position 
FROM 
  cscart_products_categories 
  INNER JOIN cscart_categories ON cscart_categories.category_id = cscart_products_categories.category_id 
  AND (
    cscart_categories.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_categories.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_categories.usergroup_ids
    )
  ) 
  AND cscart_categories.status IN ('A', 'H') 
  LEFT JOIN cscart_products_categories AS product_position_source ON cscart_products_categories.product_id = product_position_source.product_id 
  AND product_position_source.category_id = 88 
WHERE 
  cscart_products_categories.product_id IN (
    200, 201, 202, 203, 204, 205, 206, 207, 
    208, 209, 190, 210, 211, 212, 213, 214, 
    215, 216, 217, 218, 219, 191, 220, 221, 
    222, 223, 224, 225, 226, 227, 228, 229, 
    192, 230, 231, 232, 233, 234, 235, 236, 
    237, 238, 239, 193, 240, 241, 242, 243, 
    194, 195, 198, 199
  ) 
GROUP BY 
  cscart_products_categories.product_id

Query time 0.00121

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "cscart_products_categories.product_id",
      "temporary_table": {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "index",
          "possible_keys": ["PRIMARY", "c_status", "p_category_id"],
          "key": "c_status",
          "key_length": "909",
          "used_key_parts": ["usergroup_ids", "status", "parent_id"],
          "rows": 54,
          "filtered": 100,
          "attached_condition": "(cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` in ('A','H')",
          "using_index": true
        },
        "table": {
          "table_name": "cscart_products_categories",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "pt"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["category_id"],
          "ref": ["vietpom_dev.cscart_categories.category_id"],
          "rows": 2,
          "filtered": 30.95238113,
          "attached_condition": "cscart_products_categories.product_id in (200,201,202,203,204,205,206,207,208,209,190,210,211,212,213,214,215,216,217,218,219,191,220,221,222,223,224,225,226,227,228,229,192,230,231,232,233,234,235,236,237,238,239,193,240,241,242,243,194,195,198,199)"
        },
        "table": {
          "table_name": "product_position_source",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY", "pt"],
          "key": "PRIMARY",
          "key_length": "6",
          "used_key_parts": ["category_id", "product_id"],
          "ref": ["const", "vietpom_dev.cscart_products_categories.product_id"],
          "rows": 1,
          "filtered": 100
        }
      }
    }
  }
}

Result

product_id category_ids position
190 88M 0
191 88M 0
192 88M 0
193 88M 0
194 88M 0
195 88M 0
198 88M 0
199 88M 0
200 88M 0
201 88M 0
202 88M 0
203 88M 0
204 88M 0
205 88M 0
206 88M 0
207 88M 0
208 88M 0
209 88M 0
210 88M 0
211 88M 0
212 88M 0
213 88M 0
214 88M 0
215 88M 0
216 88M 0
217 88M 0
218 88M 0
219 88M 0
220 88M 0
221 88M 0
222 88M 0
223 88M 0
224 88M 0
225 88M 0
226 88M 0
227 88M 0
228 88M 0
229 88M 0
230 88M 0
231 88M 0
232 88M 0
233 88M 0
234 88M 0
235 88M 0
236 88M 0
237 88M 0
238 88M 0
239 88M 0
240 88M 0
241 88M 0
242 88M 0
243 88M 0