SELECT 
  payment_id 
FROM 
  cscart_cp_res_by_def_paym 
WHERE 
  product_id = 78 
  AND company_id = 1

Query time 0.00016

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "message": "Impossible WHERE noticed after reading const tables"
    }
  }
}