MySQL - can I avoid these correlated / dependant subqueries?
问题 I have a MySQL query that I have been optimising, and currently it has 2 dependent / correlated subqueries. I was wondering if it was possible to re write to avoid these? SELECT * FROM `pp_slides` JOIN `pp_slide_content` ON `pp_slides`.`id` = `pp_slide_content`.`slide_id` AND `pp_slide_content`.`version` = ( SELECT max(`version`) FROM `pp_slide_content` WHERE `slide_id` = `pp_slides`.`id` ) LEFT JOIN `pp_published_slides` ON `pp_published_slides`.`slide_id` = `pp_slides`.`id` AND `pp