| 1 | DESCRIBE `company` | | 27 | 27 | 4 |
| 2 | DESCRIBE `condet` | | 17 | 17 | 15 |
| 3 | DESCRIBE `countrycode` | | 4 | 4 | 11 |
| 4 | DESCRIBE `person` | | 15 | 15 | 11 |
| 5 | DESCRIBE `account` | | 29 | 29 | 20 |
| 6 | DESCRIBE `product_legacy` | | 6 | 6 | 20 |
| 7 | DESCRIBE `sales_people` | | 6 | 6 | 9 |
| 8 | DESCRIBE `profile` | | 14 | 14 | 25 |
| 9 | DESCRIBE `currencies` | | 7 | 7 | 2 |
| 10 | DESCRIBE `update_rec` | | 7 | 7 | 4 |
| 11 | DESCRIBE `user` | | 24 | 24 | 4 |
| 12 | DESCRIBE `enquiry` | | 14 | 14 | 27 |
| 13 | DESCRIBE `module_types` | | 6 | 6 | 9 |
| 14 | DESCRIBE `dms_companies` | | 26 | 26 | 2 |
| 15 | DESCRIBE `dms_releases` | | 10 | 10 | 27 |
| 16 | DESCRIBE `dms_categories` | | 4 | 4 | 3 |
| 17 | DESCRIBE `dms_clinical_areas` | | 4 | 4 | 3 |
| 18 | DESCRIBE `dms_categories_dms_releases` | | 2 | 2 | 5 |
| 19 | DESCRIBE `dms_clinical_areas_dms_releases` | | 2 | 2 | 4 |
| 20 | DESCRIBE `dms_releases_sites` | | 5 | 5 | 13 |
| 21 | DESCRIBE `licopp` | | 23 | 23 | 14 |
| 22 | DESCRIBE `development_statuses` | | 5 | 5 | 16 |
| 23 | DESCRIBE `category` | | 14 | 14 | 8 |
| 24 | DESCRIBE `categories_sites` | | 5 | 5 | 29 |
| 25 | DESCRIBE `categorisation` | | 8 | 8 | 16 |
| 26 | DESCRIBE `licopps_sites` | | 3 | 3 | 4 |
| 27 | DESCRIBE `service` | | 15 | 15 | 29 |
| 28 | DESCRIBE `press_release` | | 13 | 13 | 11 |
| 29 | DESCRIBE `press_releases_sites` | | 5 | 5 | 11 |
| 30 | DESCRIBE `story` | | 12 | 12 | 25 |
| 31 | DESCRIBE `sites_stories` | | 5 | 5 | 15 |
| 32 | DESCRIBE `story_assoc` | | 4 | 4 | 14 |
| 33 | DESCRIBE `companies_sites` | | 3 | 3 | 11 |
| 34 | DESCRIBE `categories_users` | | 2 | 2 | 2 |
| 35 | DESCRIBE `authority` | | 3 | 3 | 1 |
| 36 | DESCRIBE `sites_users` | | 5 | 5 | 3 |
| 37 | DESCRIBE `products` | | 8 | 8 | 8 |
| 38 | DESCRIBE `sites` | | 5 | 5 | 2 |
| 39 | SELECT `Site`.`id`, `Site`.`name`, `Site`.`email_domain`, `Site`.`short_name`, `Site`.`brand` FROM `sites` AS `Site` WHERE `Site`.`id` = 1 LIMIT 1 | | 1 | 1 | 5 |
| 40 | SELECT `Category`.`uid`, `Category`.`name` FROM `category` AS `Category` LEFT JOIN `category` AS `Parent` ON (`Category`.`parent` = `Parent`.`uid`) LEFT JOIN `categories_sites` AS `CategorySite` ON (`CategorySite`.`category_id` = `Category`.`uid`) WHERE `CategorySite`.`site_id` = 1 AND `Category`.`parent` = 297 ORDER BY `Category`.`name` ASC | | 11 | 11 | 26 |
| 41 | SELECT `Child`.`uid`, `Child`.`name`, `Child`.`parent`, `Child`.`has_children`, `Child`.`show_children`, `Child`.`show_grandchildren`, `Child`.`members`, `Child`.`num_children`, `Child`.`root`, `Child`.`restricted`, `Child`.`clan`, `Child`.`lft`, `Child`.`rgt`, `Child`.`level` FROM `category` AS `Child` WHERE `Child`.`parent` IN (527, 505, 303, 432, 319, 798, 453, 514, 298, 805, 534) ORDER BY `name` ASC | | 111 | 111 | 5 |
| 42 | SELECT `Category`.`uid`, `Category`.`name` FROM `category` AS `Category` LEFT JOIN `category` AS `Parent` ON (`Category`.`parent` = `Parent`.`uid`) LEFT JOIN `categories_sites` AS `CategorySite` ON (`CategorySite`.`category_id` = `Category`.`uid`) WHERE `CategorySite`.`site_id` = 1 AND `Category`.`parent` = 560 ORDER BY `Category`.`name` ASC | | 20 | 20 | 10 |
| 43 | SELECT `Child`.`uid`, `Child`.`name`, `Child`.`parent`, `Child`.`has_children`, `Child`.`show_children`, `Child`.`show_grandchildren`, `Child`.`members`, `Child`.`num_children`, `Child`.`root`, `Child`.`restricted`, `Child`.`clan`, `Child`.`lft`, `Child`.`rgt`, `Child`.`level` FROM `category` AS `Child` WHERE `Child`.`parent` IN (1476, 561, 575, 582, 595, 603, 635, 616, 1477, 631, 641, 651, 562, 654, 662, 572, 1479, 670, 679, 689) ORDER BY `name` ASC | | 316 | 316 | 4 |
| 44 | SELECT `Category`.`uid`, `Category`.`name` FROM `category` AS `Category` LEFT JOIN `category` AS `Parent` ON (`Category`.`parent` = `Parent`.`uid`) LEFT JOIN `categories_sites` AS `CategorySite` ON (`CategorySite`.`category_id` = `Category`.`uid`) WHERE `CategorySite`.`site_id` = 1 AND `Category`.`parent` = 1 ORDER BY `Category`.`name` ASC | | 8 | 8 | 22 |
| 45 | SELECT `Child`.`uid`, `Child`.`name`, `Child`.`parent`, `Child`.`has_children`, `Child`.`show_children`, `Child`.`show_grandchildren`, `Child`.`members`, `Child`.`num_children`, `Child`.`root`, `Child`.`restricted`, `Child`.`clan`, `Child`.`lft`, `Child`.`rgt`, `Child`.`level` FROM `category` AS `Child` WHERE `Child`.`parent` IN (72, 46, 69, 212, 2, 119, 145, 244) ORDER BY `name` ASC | | 187 | 187 | 2 |
| 46 | SELECT COUNT(*) AS `count` FROM `company` AS `Company` LEFT JOIN `condet` AS `Contact` ON (`Company`.`condet_id` = `Contact`.`uid`) LEFT JOIN `person` AS `PrimaryContact` ON (`PrimaryContact`.`company_primary_contact` = 1 AND `Company`.`person_id` = `PrimaryContact`.`uid`) LEFT JOIN `account` AS `Account` ON (`Account`.`company_id` = `Company`.`uid`) LEFT JOIN `profile` AS `Profile` ON (`Profile`.`company_id` = `Company`.`uid`) LEFT JOIN `dms_companies` AS `DmsCompany` ON (`DmsCompany`.`company_id` = `Company`.`uid`) LEFT JOIN `companies_sites` AS `CompanySite` ON (`CompanySite`.`company_id` = `Company`.`uid`) WHERE `CompanySite`.`site_id` = 1 AND `Company`.`is_live` = 'Y' AND `Company`.`is_customer` = 'Y' AND SUBSTRING(`Company`.`name`,1,1) REGEXP "[^a-z]|a" | | 1 | 1 | 11 |
| 47 | SELECT `Company`.`uid`, `Company`.`slug`, `Company`.`name`, `Company`.`condet_id`, `Company`.`person_id`, `Company`.`billing_id`, `Company`.`parent`, `Company`.`has_children`, `Company`.`notes_id`, `Company`.`contact_status`, `Company`.`last_contacted`, `Company`.`profile_id`, `Company`.`account_id`, `Company`.`summary`, `Company`.`is_customer`, `Company`.`change_time`, `Company`.`flags`, `Company`.`is_anon`, `Company`.`is_resource`, `Company`.`satellite`, `Company`.`no_dms`, `Company`.`is_live`, `Company`.`viewed_counter`, `Company`.`created`, `Company`.`last_disabled`, `Company`.`no_trial`, `Company`.`trial_notification_sent`, `CompanySite`.`id`, `CompanySite`.`company_id`, `CompanySite`.`site_id` FROM `company` AS `Company` LEFT JOIN `companies_sites` AS `CompanySite` ON (`CompanySite`.`company_id` = `Company`.`uid`) WHERE `CompanySite`.`site_id` = 1 AND `Company`.`is_live` = 'Y' AND `Company`.`is_customer` = 'Y' AND SUBSTRING(`Company`.`name`,1,1) REGEXP "[^a-z]|a" ORDER BY `Company`.`is_customer` DESC, `Company`.`name` ASC LIMIT 25 | | 25 | 25 | 10 |