SELECT 
  tmall_discussion_posts.*, 
  tmall_discussion_messages.message, 
  tmall_discussion_rating.rating_value 
FROM 
  tmall_discussion_posts 
  LEFT JOIN tmall_discussion_messages ON tmall_discussion_messages.post_id = tmall_discussion_posts.post_id 
  LEFT JOIN tmall_discussion_rating ON tmall_discussion_rating.post_id = tmall_discussion_posts.post_id 
WHERE 
  tmall_discussion_posts.thread_id = 1 
  AND tmall_discussion_posts.status = 'A' 
ORDER BY 
  tmall_discussion_posts.timestamp DESC 
LIMIT 
  0, 10

Query time 0.00787

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.010583984,
    "nested_loop": [
      {
        "read_sorted_file": {
          "filesort": {
            "sort_key": "tmall_discussion_posts.`timestamp` desc",
            "table": {
              "table_name": "tmall_discussion_posts",
              "access_type": "ref",
              "possible_keys": ["thread_id", "thread_id_2"],
              "key": "thread_id",
              "key_length": "3",
              "used_key_parts": ["thread_id"],
              "ref": ["const"],
              "loops": 1,
              "rows": 2,
              "cost": 0.00325828,
              "filtered": 100,
              "attached_condition": "tmall_discussion_posts.thread_id <=> 1 and tmall_discussion_posts.`status` = 'A'"
            }
          }
        }
      },
      {
        "table": {
          "table_name": "tmall_discussion_messages",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["post_id"],
          "ref": ["tmall.tmall_discussion_posts.post_id"],
          "loops": 2,
          "rows": 1,
          "cost": 0.003662852,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "tmall_discussion_rating",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["post_id"],
          "ref": ["tmall.tmall_discussion_posts.post_id"],
          "loops": 2,
          "rows": 1,
          "cost": 0.003662852,
          "filtered": 100
        }
      }
    ]
  }
}

Result

post_id thread_id name timestamp user_id ip_address status message rating_value
2 1 A PC Hardware Fan 1129559367 0 192.168.0.2 A This monitor is way too light (everything appears faded out), and adjusting the contrast and brightness controls don't help. No matter what brightness contrast setting is used, everything is either way too dim & gray or way too light. The monitor's brightness & contrast controls seem to have the exact same function - contrast setting appears to actually be adjusting the brightness and nothing seems to be actually changing the contrast. This will probably be returned soon, unless someone can tell me how to get the correct brightness/contrast setting. 2
1 1 Customer Customer 1129547428 3 192.168.0.2 A I first noticed this monitor at one of those computer stores where they place all the monitors on the same shelf. This one really stood out for color and very sharp focus. I watch movies and play some games and I haven't noticed any ghosting. The only thing that I wish I could do is rotate the screen for word processing (kind of a minor complaint). Otherwise this is a very good monitor and the price is good for a 3D LCD. 4