SELECT 
  cscart_discussion_posts.*, 
  cscart_discussion_messages.message, 
  cscart_discussion_rating.rating_value 
FROM 
  cscart_discussion_posts 
  LEFT JOIN cscart_discussion_messages ON cscart_discussion_messages.post_id = cscart_discussion_posts.post_id 
  LEFT JOIN cscart_discussion_rating ON cscart_discussion_rating.post_id = cscart_discussion_posts.post_id 
WHERE 
  cscart_discussion_posts.thread_id IN (4037) 
  AND cscart_discussion_posts.status = 'A' 
ORDER BY 
  cscart_discussion_posts.timestamp DESC 
LIMIT 
  0, 10

Query time 0.00058

JSON explain

{
  "query_block": {
    "select_id": 1,
    "read_sorted_file": {
      "filesort": {
        "sort_key": "cscart_discussion_posts.`timestamp` desc",
        "table": {
          "table_name": "cscart_discussion_posts",
          "access_type": "ref",
          "possible_keys": ["thread_id", "thread_id_2"],
          "key": "thread_id_2",
          "key_length": "6",
          "used_key_parts": ["thread_id", "status"],
          "ref": ["const", "const"],
          "rows": 22,
          "filtered": 100,
          "index_condition": "cscart_discussion_posts.`status` = 'A'",
          "attached_condition": "cscart_discussion_posts.thread_id <=> 4037 and cscart_discussion_posts.`status` <=> 'A'"
        }
      }
    },
    "table": {
      "table_name": "cscart_discussion_messages",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["post_id"],
      "ref": ["cscart_migrate.cscart_discussion_posts.post_id"],
      "rows": 1,
      "filtered": 100
    },
    "table": {
      "table_name": "cscart_discussion_rating",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["post_id"],
      "ref": ["cscart_migrate.cscart_discussion_posts.post_id"],
      "rows": 1,
      "filtered": 100
    }
  }
}

Result

post_id thread_id name timestamp user_id ip_address status email message rating_value
121834 4037 Loren Kollmar 1493646960 0 12.23.143.33 A It wasn't the part I needed and we did get that worked out but they sent it based on written description so I don't blame them for sending me a likely part. All that being said, it is a nice heavy duty quality piece that I'm going to use to make my own lamp as soon as I come across the right item to convert. 5
121766 4037 terry windust 1492282980 0 99.51.79.167 A everything worked out great,thank you, just what the Dr.ordered 5
121658 4037 Barry 1490501100 0 184.238.238.241 A It's exactly what you need for your old Benjamin light. I purchased 5, no regrets. 5
121232 4037 rebecca petty 1483730460 0 99.183.145.169 A just the ticket 5
120398 4037 Mehl Renner 1473691560 0 66.26.181.31 A The exact fix I needed for a salvaged outdoor goose neck lamp. Desired a more rugged assembly with higher wattage than I was able to find anywhere else. 5
119907 4037 Von Clendenen 1469196660 0 50.42.0.64 A I had bought 8 green porcelain barn lights to replace fluorescent strip lights in my beauty salon at an antique show and seller said that there were numerous places to get the "guts" at. I did considerable searching and this particular socket set up with hex nut coupler was a perfect fit and the price was reasonable. Couldn't be happier with the sockets, now just have to find the time to hang them. 5
119012 4037 Danny Thompson 1461413880 0 66.241.165.235 A Your product was the right size and very good quality. Fit perfect in my Grandfather's farm "pole light" which is now in my new garage. 5
118831 4037 Jessica Miller 1460161200 0 174.108.62.59 A Just received this in the mail today, I was so nervous that it wasn't going to fit. But it turned out to be exactly what I needed!! Its absolutely perfect! So thankful I found this company, I will definitely be ordering from them again. Can't wait to put my antique pendant lights up! 5
118193 4037 John Lindeke 1455819960 0 198.174.110.146 A I was very pleased with the item I purchased. The service was fast and quick. I will purchase from them again. 5
117157 4037 John 1449289560 0 74.194.98.31 A Wow! I've been looking all over the Internet looking for this part, and the closest I've come would have had a mogul base and required an adapter to run medium based lights. I do have a suggestion as I couldn't get the retaining ring off until I realized it was a left-hand screw pattern. Lefty-tighty, righty-loosey! I thought I'd ordered the wrong thing for a while. How about warning those of us who don't know exactly what we're doing that this thing goes the opposite way from 99% of the screw patterns in the US. Still, all in all I'm thrilled to have this product in my hand. New life to an old metal shade I've had for years. Thanks!! From Barn Light Electric -- Due to lighting standards, the thread patterns are universal. They are created in a reversed fashion so that when you remove the light bulb, it does not loosen the socket fitting from the fixture. So therefore, you do need to turn left to tighten and right to loosen. These couplers are hand tightened to ensure the customer will be able to adjust as needed. 5