Бесплатный подбор
клиники или врача
+7 (495) 646 71 97
Запись на прием
(единая регистратура)
Профессиональная медицина для Вас
debug sql count: 11, sql time: 0,069
time: 0.000
        

SET SQL_AUTO_IS_NULL = 0

time: 0.001
        

SELECT `core_metro`.`id`, `core_metro`.`position`, `core_metro`.`slug`,
`core_metro`.`name`, `core_metro`.`code`, `core_metro`.`line`,
`core_metro`.`latitude`, `core_metro`.`longitude`
FROM `core_metro`
WHERE `core_metro`.`slug` = 'mitino' LIMIT 21

time: 0.000
        

SELECT `core_specialization`.`id`, `core_specialization`.`slug`, `core_specialization`.`name`,
`core_specialization`.`name_mn`, `core_specialization`.`name_rod`, `core_specialization`.`name_im2`,
`core_specialization`.`description`
FROM `core_specialization`
WHERE `core_specialization`.`slug` = 'gastroenterolog' LIMIT 21

time: 0.001
        

SELECT COUNT(*)
FROM `clinic_clinic` INNER JOIN `clinic_clinic_specializations` ON ( `clinic_clinic`.`id` = `clinic_clinic_specializations`.`clinic_id` ) INNER JOIN `clinic_clinic_metro` ON ( `clinic_clinic`.`id` = `clinic_clinic_metro`.`clinic_id` )
WHERE (`clinic_clinic`.`active` = 1 AND `clinic_clinic_specializations`.`specialization_id` = 6 AND `clinic_clinic_metro`.`metro_id` = 40)

time: 0.000
        

SELECT `clinic_clinic`.`id`
FROM `clinic_clinic` INNER JOIN `clinic_clinic_specializations` ON ( `clinic_clinic`.`id` = `clinic_clinic_specializations`.`clinic_id` ) INNER JOIN `clinic_clinic_metro` ON ( `clinic_clinic`.`id` = `clinic_clinic_metro`.`clinic_id` )
WHERE (`clinic_clinic`.`active` = 1 AND `clinic_clinic_specializations`.`specialization_id` = 6 AND `clinic_clinic_metro`.`metro_id` = 40) ORDER BY `clinic_clinic`.`rating_avg` DESC LIMIT 1

time: 0.001
        

SELECT `clinic_clinic_metro`.`clinic_id`, `core_metro`.`id`, `core_metro`.`name`
FROM `core_metro` INNER JOIN `clinic_clinic_metro` ON ( `core_metro`.`id` = `clinic_clinic_metro`.`metro_id` )
WHERE `clinic_clinic_metro`.`clinic_id` IN (26) ORDER BY `core_metro`.`position` ASC

time: 0.000
        

SELECT `clinic_clinic`.`id`
FROM `clinic_clinic` INNER JOIN `clinic_clinic_specializations` ON ( `clinic_clinic`.`id` = `clinic_clinic_specializations`.`clinic_id` ) INNER JOIN `clinic_clinic_metro` ON ( `clinic_clinic`.`id` = `clinic_clinic_metro`.`clinic_id` )
WHERE (`clinic_clinic`.`active` = 1 AND `clinic_clinic_specializations`.`specialization_id` = 6 AND `clinic_clinic_metro`.`metro_id` = 40) ORDER BY `clinic_clinic`.`rating_avg` DESC LIMIT 1

time: 0.000
        

SELECT `clinic_clinic_cities`.`clinic_id`, `core_city`.`id`, `core_city`.`name`
FROM `core_city` INNER JOIN `clinic_clinic_cities` ON ( `core_city`.`id` = `clinic_clinic_cities`.`city_id` )
WHERE `clinic_clinic_cities`.`clinic_id` IN (26) ORDER BY `core_city`.`position` ASC

time: 0.052
        

SELECT `core_specialization`.`id`, `core_specialization`.`slug`, `core_specialization`.`name`,
`core_specialization`.`name_mn`, `core_specialization`.`name_rod`, `core_specialization`.`name_im2`,
`core_specialization`.`description`
FROM `core_specialization` ORDER BY `core_specialization`.`name` ASC

time: 0.013
        

SELECT `core_specialization`.`id`, `core_specialization`.`slug`, `core_specialization`.`name`,
`core_specialization`.`name_mn`, `core_specialization`.`name_rod`, `core_specialization`.`name_im2`,
`core_specialization`.`description`, COUNT(`clinic_clinic_specializations`.`clinic_id`) AS `specialization_clinics__count`
FROM `core_specialization` LEFT OUTER JOIN `clinic_clinic_specializations` ON ( `core_specialization`.`id` = `clinic_clinic_specializations`.`specialization_id` ) GROUP BY `core_specialization`.`id` HAVING COUNT(`clinic_clinic_specializations`.`clinic_id`) > 0 ORDER BY `core_specialization`.`name` ASC

time: 0.001
        

SELECT `clinic_clinic`.`id`, `clinic_clinic`.`meta_title`, `clinic_clinic`.`meta_keywords`,
`clinic_clinic`.`meta_description`, `clinic_clinic`.`active`, `clinic_clinic`.`date`,
`clinic_clinic`.`name`, `clinic_clinic`.`address`, `clinic_clinic`.`description`,
`clinic_clinic`.`image`, `clinic_clinic`.`rating_avg`, `clinic_clinic`.`testimonial_count`,
`clinic_clinic`.`latitude`, `clinic_clinic`.`longitude`
FROM `clinic_clinic` INNER JOIN `clinic_clinic_specializations` ON ( `clinic_clinic`.`id` = `clinic_clinic_specializations`.`clinic_id` ) INNER JOIN `clinic_clinic_metro` ON ( `clinic_clinic`.`id` = `clinic_clinic_metro`.`clinic_id` )
WHERE (`clinic_clinic`.`active` = 1 AND `clinic_clinic_specializations`.`specialization_id` = 6 AND `clinic_clinic_metro`.`metro_id` = 40) ORDER BY `clinic_clinic`.`rating_avg` DESC LIMIT 1