Too many connections SELECT `page_id` FROM `pages` WHERE `ref_site_id` = 6 AND `ref_page_id_parent` IS NULL ORDER BY `page_rank` ASC LIMIT 1