SELECT 
  cscart_logs.*, 
  cscart_users.firstname, 
  cscart_users.lastname 
FROM 
  cscart_logs 
  LEFT JOIN cscart_users USING(user_id) 
WHERE 
  1 
  AND (
    cscart_logs.timestamp >= 1752032973 
    AND cscart_logs.timestamp <= 1752036573
  ) 
  AND cscart_logs.type = 'requests' 
  AND cscart_logs.action = 'shipping' 
  AND cscart_logs.company_id = 1 
ORDER BY 
  cscart_logs.timestamp desc, 
  cscart_logs.log_id desc

Query time 0.00050

JSON explain

{
  "query_block": {
    "select_id": 1,
    "read_sorted_file": {
      "filesort": {
        "sort_key": "cscart_logs.`timestamp` desc, cscart_logs.log_id desc",
        "table": {
          "table_name": "cscart_logs",
          "access_type": "range",
          "possible_keys": ["type", "idx_timestamp"],
          "key": "idx_timestamp",
          "key_length": "4",
          "used_key_parts": ["timestamp"],
          "rows": 2,
          "filtered": 100,
          "index_condition": "cscart_logs.`timestamp` >= 1752032973 and cscart_logs.`timestamp` <= 1752036573",
          "attached_condition": "cscart_logs.company_id = 1 and cscart_logs.`type` = 'requests' and cscart_logs.`action` = 'shipping'"
        }
      }
    },
    "table": {
      "table_name": "cscart_users",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["user_id"],
      "ref": ["herbaria_cscart_4_18.cscart_logs.user_id"],
      "rows": 1,
      "filtered": 100
    }
  }
}