SELECT 
  style_id 
FROM 
  cscart_vendor_styles 
WHERE 
  company_id = 137 
  AND layout_id = 8

Query time 0.00047

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}