In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
ALTER TABLE `chat` ADD INDEX `chat_idx_id` (`id`);
SELECT
t1_id,
t2.name,
guid guid,
t1_timestamp,
t1_server_id,
t1_message
FROM
(SELECT
t1.id AS t1_id,
t1.name guid,
t1.timestamp AS t1_timestamp,
t1.server_id AS t1_server_id,
t1.message AS t1_message
FROM
chat t1
ORDER BY
t1.id DESC LIMIT 20) t1
LEFT JOIN
players t2
ON t2.guid = t1.guid LIMIT 20