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 `phplist_user_user` ADD INDEX `phplist_user_idx_email_id` (`email`,`id`);
ALTER TABLE `phplist_user_user_attribute` ADD INDEX `phplist_user_idx_attributeid` (`attributeid`);
SELECT
phplist_user_user_attribute.value AS token
FROM
phplist_user_user_attribute
WHERE
phplist_user_user_attribute.attributeid = 3
AND phplist_user_user_attribute.userid = (
SELECT
MAX(phplist_user_user.`id`)
FROM
phplist_user_user
WHERE
phplist_user_user.`email` = '[email protected]'
)