SELECT 
  SQL_CALC_FOUND_ROWS products.product_id, 
  products.product_type, 
  products.parent_product_id 
FROM 
  cscart_products as products 
  INNER JOIN cscart_products_categories as products_categories ON products_categories.product_id = products.product_id 
  INNER JOIN cscart_categories ON cscart_categories.category_id = 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
    )
  ) 
WHERE 
  1 
  AND pos_availabilty IN ('S', 'N') 
  AND (
    products.usergroup_ids = '' 
    OR FIND_IN_SET(0, products.usergroup_ids) 
    OR FIND_IN_SET(1, products.usergroup_ids)
  ) 
  AND products.status = 'A' 
  AND products.parent_product_id = 0 
GROUP BY 
  products.product_id 
ORDER BY 
  products.timestamp desc 
LIMIT 
  0, 10

Query time 0.06810

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "2120.31"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "products",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "status",
                "idx_parent_product_id"
              ],
              "key": "status",
              "used_key_parts": [
                "status"
              ],
              "key_length": "3",
              "ref": [
                "const"
              ],
              "rows_examined_per_scan": 3747,
              "rows_produced_per_join": 749,
              "filtered": "19.99",
              "cost_info": {
                "read_cost": "172.32",
                "eval_cost": "74.92",
                "prefix_cost": "547.03",
                "data_read_per_join": "3M"
              },
              "used_columns": [
                "product_id",
                "product_type",
                "status",
                "timestamp",
                "usergroup_ids",
                "parent_product_id",
                "pos_availabilty"
              ],
              "attached_condition": "((`dbggbern`.`products`.`parent_product_id` = 0) and (`dbggbern`.`products`.`pos_availabilty` in ('S','N')) and ((`dbggbern`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`dbggbern`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`dbggbern`.`products`.`usergroup_ids`))))"
            }
          },
          {
            "table": {
              "table_name": "products_categories",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "pt"
              ],
              "key": "pt",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "dbggbern.products.product_id"
              ],
              "rows_examined_per_scan": 3,
              "rows_produced_per_join": 2247,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "561.89",
                "eval_cost": "224.75",
                "prefix_cost": "1333.67",
                "data_read_per_join": "35K"
              },
              "used_columns": [
                "product_id",
                "category_id"
              ]
            }
          },
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "c_status",
                "p_category_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_id"
              ],
              "key_length": "3",
              "ref": [
                "dbggbern.products_categories.category_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 2247,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "561.89",
                "eval_cost": "224.75",
                "prefix_cost": "2120.31",
                "data_read_per_join": "8M"
              },
              "used_columns": [
                "category_id",
                "usergroup_ids"
              ],
              "attached_condition": "((`dbggbern`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`dbggbern`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`dbggbern`.`cscart_categories`.`usergroup_ids`)))"
            }
          }
        ]
      }
    }
  }
}

Result

product_id product_type parent_product_id
7917 P 0
7977 P 0
7976 P 0
7975 P 0
7974 P 0
7973 P 0
7972 P 0
7971 P 0
7970 P 0
7969 P 0