Menu
type | calls | time (ms) | time (%) |
---|---|---|---|
Database (Doctrine) | 54 | 0.03 | 0 |
SET NAMES 'utf8mb4'
SELECT d.id AS d__id, d.name AS d__name, d.type AS d__type, d.params AS d__params, d.group_name AS d__group_name, d.credentials AS d__credentials, d2.id AS d2__id, d2.description AS d2__description, d2.value AS d2__value, d2.default_value AS d2__default_value, d2.lang AS d2__lang FROM dm_setting d LEFT JOIN dm_setting_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.name = '_header')
SELECT d.id AS d__id, d.ip AS d__ip, d.name AS d__name, d.ts AS d__ts, d.page AS d__page, d.country AS d__country, d.country_code AS d__country_code, d.city AS d__city, d.browser AS d__browser, d.dm_user AS d__dm_user FROM dm_who_is_online d WHERE (d.ip = '3.139.108.140' AND d.name = 'Guest')
INSERT INTO dm_who_is_online (ip, name, browser, ts, page) VALUES ('3.139.108.140', 'Guest', 'unknown', '1725763351', 'https://dev.telltrail.com/dev.php/directory/details/710/devtester?business_directory_form_filter%5Bby_nested_set_category%5D=1')
DELETE FROM dm_who_is_online WHERE (ts < '1725763051')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d INNER JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d2.slug = 'directory/details')
SELECT d.id AS d__id, d.name AS d__name, d.type AS d__type, d.params AS d__params, d.group_name AS d__group_name, d.credentials AS d__credentials, d2.id AS d2__id, d2.description AS d2__description, d2.value AS d2__value, d2.default_value AS d2__default_value, d2.lang AS d2__lang FROM dm_setting d LEFT JOIN dm_setting_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.name = '_header')
SELECT d.id AS d__id, d.ip AS d__ip, d.name AS d__name, d.ts AS d__ts, d.page AS d__page, d.country AS d__country, d.country_code AS d__country_code, d.city AS d__city, d.browser AS d__browser, d.dm_user AS d__dm_user FROM dm_who_is_online d WHERE (d.ip = '3.139.108.140' AND d.name = 'Guest')
DELETE FROM dm_who_is_online WHERE (ts < '1725763051')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.dm_layout_id AS d__dm_layout_id, d2.id AS d2__id, d2.name AS d2__name, d2.template AS d2__template, d2.css_class AS d2__css_class FROM dm_page_view d LEFT JOIN dm_layout d2 ON d.dm_layout_id = d2.id WHERE (d.module = 'main' AND d.action = 'directoryShow')
SELECT d.id AS d__id, d.dm_layout_id AS d__dm_layout_id, d.type AS d__type, d2.id AS d2__id, d2.width AS d2__width, d2.css_class AS d2__css_class, d3.id AS d3__id, d3.module AS d3__module, d3.action AS d3__action, d3.css_class AS d3__css_class, d4.id AS d4__id, d4.lang AS d4__lang, d4.value AS d4__value FROM dm_area d LEFT JOIN dm_zone d2 ON d.id = d2.dm_area_id LEFT JOIN dm_widget d3 ON d2.id = d3.dm_zone_id LEFT JOIN dm_widget_translation d4 ON d3.id = d4.id AND ((d4.lang = 'en' OR d4.lang = 'en')) WHERE (d.dm_layout_id = '24' OR d.dm_page_view_id = '134') ORDER BY d2.position asc, d3.position asc
SELECT d.id AS d__id, d.username AS d__username, d.email AS d__email, d.algorithm AS d__algorithm, d.salt AS d__salt, d.password AS d__password, d.is_active AS d__is_active, d.is_super_admin AS d__is_super_admin, d.last_login AS d__last_login, d.forgot_password_code AS d__forgot_password_code, d.sca_address AS d__sca_address, d.notifications_read AS d__notifications_read, d.notifications_emailed AS d__notifications_emailed, d.points AS d__points, d.referrer AS d__referrer, d.image_folder AS d__image_folder, d.firstname AS d__firstname, d.lastname AS d__lastname, d.dob AS d__dob, d.gender AS d__gender, d.headline AS d__headline, d.description AS d__description, d.about AS d__about, d.hobbies AS d__hobbies, d.education AS d__education, d.employment AS d__employment, d.ethnicity AS d__ethnicity, d.smoker AS d__smoker, d.alcohol AS d__alcohol, d.build AS d__build, d.religion AS d__religion, d.marital_status AS d__marital_status, d.dependent_children AS d__dependent_children, d.want_children AS d__want_children, d.looking_for_min AS d__looking_for_min, d.looking_for_max AS d__looking_for_max, d.privacy_profile AS d__privacy_profile, d.privacy_profile_share_online AS d__privacy_profile_share_online, d.privacy_profile_share_age AS d__privacy_profile_share_age, d.privacy_profile_share_cover AS d__privacy_profile_share_cover, d.privacy_search_realname AS d__privacy_search_realname, d.privacy_search_email AS d__privacy_search_email, d.privacy_search_hobbies AS d__privacy_search_hobbies, d.privacy_accept_messages AS d__privacy_accept_messages, d.preferences_timeformat AS d__preferences_timeformat, d.currency AS d__currency, d.country AS d__country, d.notifications AS d__notifications, d.telltrail_update AS d__telltrail_update, d.coins AS d__coins, d.expire_date AS d__expire_date, d.rating AS d__rating, d.warning AS d__warning, d.suspended AS d__suspended, d.suspended_reason AS d__suspended_reason, d.membership AS d__membership, d.language AS d__language, d.referral AS d__referral, d.email_backup AS d__email_backup, d.security_question AS d__security_question, d.security_response AS d__security_response, d.phone AS d__phone, d.mobile AS d__mobile, d.notification_interval AS d__notification_interval, d.region AS d__region, d.town_city AS d__town_city, d.postcode AS d__postcode, d.street AS d__street, d.registration_code AS d__registration_code, d.password_changed AS d__password_changed, d.security_question_changed AS d__security_question_changed, d.is_in_quarantine AS d__is_in_quarantine, d.quarantine_start AS d__quarantine_start, d.quarantine_end AS d__quarantine_end, d.quarantine_time AS d__quarantine_time, d.nb_views AS d__nb_views, d.is_completed_activation AS d__is_completed_activation, d.last_activation_reminder_date AS d__last_activation_reminder_date, d.invitation_link_welcome_text AS d__invitation_link_welcome_text, d.invitation_email_welcome_text AS d__invitation_email_welcome_text, d.location_address_valid AS d__location_address_valid, d.invitation_email_message_text AS d__invitation_email_message_text, d.invitation_email_shortlink_text AS d__invitation_email_shortlink_text, d.created_at AS d__created_at, d.updated_at AS d__updated_at, d.location_address AS d__location_address, d.location_latitude AS d__location_latitude, d.location_longitude AS d__location_longitude, d.location_type AS d__location_type, d.location_street_number AS d__location_street_number, d.location_route AS d__location_route, d.location_locality AS d__location_locality, d.location_country AS d__location_country, d.location_postal_code AS d__location_postal_code, d.location_postal_code_prefix AS d__location_postal_code_prefix, d.location_administrative_area_level_1 AS d__location_administrative_area_level_1, d.location_administrative_area_level_2 AS d__location_administrative_area_level_2, d.dm_taggable_denormalized_tags_cache_field AS d__dm_taggable_denormalized_tags_cache_field, d.comments_count AS d__comments_count, d.followers_count AS d__followers_count, d.slug AS d__slug FROM dm_user d WHERE (d.id = '710') LIMIT 1
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'directoryShow')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'root')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'register')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'dmUser' AND d.action = 'list')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'classifiedCategories' AND d.action = 'list')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'directoryList')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'socialEvent' AND d.action = 'list')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'blog' AND d.action = 'list')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'news' AND d.action = 'list')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'job' AND d.action = 'list')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'poll' AND d.action = 'list')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'forumCategory' AND d.action = 'list')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'adviceList')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'lostFound')
SELECT d.id AS d__id, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.lft < '2563' AND d.rgt > '2564') ORDER BY d.lft asc
SELECT r.id AS r__id, r.is_active AS r__is_active, r.status AS r__status, r.business_trading_name AS r__business_trading_name, r.house_building_no AS r__house_building_no, r.postcode AS r__postcode, r.town_city AS r__town_city, r.country AS r__country, r.vat_check_status AS r__vat_check_status, r.vat_number AS r__vat_number, r.vat_vies_response AS r__vat_vies_response, r.contact_name AS r__contact_name, r.contact_email AS r__contact_email, r.sponsor_promotional_code AS r__sponsor_promotional_code, r.sponsor_id AS r__sponsor_id, r.sponsor_notified AS r__sponsor_notified, r.sponsor_commission_fee AS r__sponsor_commission_fee, r.dm_user_id AS r__dm_user_id, r.admin_notes AS r__admin_notes, r.registration_code AS r__registration_code, r.official_company_name AS r__official_company_name, r.sub_building AS r__sub_building, r.street_name AS r__street_name, r.state_region AS r__state_region, r.primary_category_id AS r__primary_category_id, r.primary_category_goods AS r__primary_category_goods, r.primary_category_services AS r__primary_category_services, r.second_category_id AS r__second_category_id, r.second_category_goods AS r__second_category_goods, r.second_category_services AS r__second_category_services, r.third_category_id AS r__third_category_id, r.third_category_goods AS r__third_category_goods, r.third_category_services AS r__third_category_services, r.sd_show_full_address AS r__sd_show_full_address, r.sd_range_from_business_address AS r__sd_range_from_business_address, r.sd_range_from_business_m_km AS r__sd_range_from_business_m_km, r.sd_by_mail_email AS r__sd_by_mail_email, r.sd_chain AS r__sd_chain, r.headline AS r__headline, r.main_description AS r__main_description, r.company_logo_id AS r__company_logo_id, r.feedback_incentives_id AS r__feedback_incentives_id, r.supplier_recommendation_id AS r__supplier_recommendation_id, r.website AS r__website, r.sales_telephone AS r__sales_telephone, r.directory_status AS r__directory_status, r.directory_date_published AS r__directory_date_published, r.created_at AS r__created_at, r.updated_at AS r__updated_at, r.dm_taggable_denormalized_tags_cache_field AS r__dm_taggable_denormalized_tags_cache_field, r.location_address AS r__location_address, r.location_latitude AS r__location_latitude, r.location_longitude AS r__location_longitude, r.location_type AS r__location_type, r.location_street_number AS r__location_street_number, r.location_route AS r__location_route, r.location_locality AS r__location_locality, r.location_country AS r__location_country, r.location_postal_code AS r__location_postal_code, r.location_postal_code_prefix AS r__location_postal_code_prefix, r.location_administrative_area_level_1 AS r__location_administrative_area_level_1, r.location_administrative_area_level_2 AS r__location_administrative_area_level_2 FROM retailer_account r WHERE (r.dm_user_id = '710')
SELECT r.id AS r__id, r.title AS r__title, r.body AS r__body, r.score AS r__score, r.score_offer_improve AS r__score_offer_improve, r.transaction_date AS r__transaction_date, r.retailer_account_id AS r__retailer_account_id, r.consumer_account_id AS r__consumer_account_id, r.status AS r__status, r.current_player_turn AS r__current_player_turn, r.current_player_turn_user_id AS r__current_player_turn_user_id, r.current_player_turn_start AS r__current_player_turn_start, r.current_player_countdown_start AS r__current_player_countdown_start, r.current_player_countdown_ends AS r__current_player_countdown_ends, r.admin_dispute_player_turn AS r__admin_dispute_player_turn, r.review_days_left AS r__review_days_left, r.reported_by AS r__reported_by, r.last_comment_type AS r__last_comment_type, r.customer_query_reply_nb AS r__customer_query_reply_nb, r.created_at AS r__created_at, r.updated_at AS r__updated_at, r.created_by AS r__created_by, r.updated_by AS r__updated_by, r.deleted_at AS r__deleted_at, r.version AS r__version FROM retailer_feedback_report r WHERE (r.retailer_account_id = '32' AND r.status IN ('implicitly_accepted', 'immediately_accepted', 'unsatisfied_conclusion', 'unsatisfied_conclusion_offer_rejected', 'satisfactory_conclusion_with_improved_score', 'satisfactory_conclusion_without_improved_score', 'satisfactory_conclusion_offer_accepted')) ORDER BY r.created_at DESC
SELECT COUNT(*) AS num_results FROM business_category b WHERE b.id = '1'
SELECT AVG(user_avg_score) as active_avg_score FROM (SELECT user_id, AVG(score) AS user_avg_score FROM (SELECT created_by AS user_id, score, (SELECT COUNT(*) FROM retailer_feedback_report WHERE rfd.created_by = created_by) FROM (SELECT created_by, score FROM retailer_feedback_report rf WHERE rf.retailer_account_id = 32 AND rf.created_at >= '2024-06-10 03:42:31' AND rf.status IN ('implicitly_accepted', 'immediately_accepted', 'unsatisfied_conclusion', 'unsatisfied_conclusion_offer_rejected', 'satisfactory_conclusion_with_improved_score', 'satisfactory_conclusion_without_improved_score', 'satisfactory_conclusion_offer_accepted') ORDER BY created_by , score) as rfd) AS scr GROUP BY user_id) as user_avg_score
SELECT COUNT(grouped_scores) as active_total_reports FROM (SELECT COUNT(scr.score) as grouped_scores FROM ( SELECT rf.score, rf.created_by FROM retailer_feedback_report rf WHERE rf.retailer_account_id = 32 AND rf.created_at >= '2024-06-10 03:42:31' AND rf.status IN ('implicitly_accepted', 'immediately_accepted', 'unsatisfied_conclusion', 'unsatisfied_conclusion_offer_rejected', 'satisfactory_conclusion_with_improved_score', 'satisfactory_conclusion_without_improved_score', 'satisfactory_conclusion_offer_accepted')) as scr GROUP BY scr.created_by) as scrs
SELECT AVG(user_avg_score) as pending_avg_score FROM (SELECT user_id, AVG(score) AS user_avg_score FROM (SELECT created_by AS user_id, score, (SELECT COUNT(*) FROM retailer_feedback_report WHERE rfd.created_by = created_by) FROM (SELECT created_by, score FROM retailer_feedback_report rf WHERE rf.retailer_account_id = 32 AND rf.created_at >= '2024-06-10 03:42:31' AND rf.status IN ('initial', 'pending', 'dispute', 'offer') ORDER BY created_by , score) as rfd) AS scr GROUP BY user_id) as user_avg_score
SELECT COUNT(grouped_scores) as pending_total_reports FROM (SELECT COUNT(scr.score) as grouped_scores FROM ( SELECT rf.score, rf.created_by FROM retailer_feedback_report rf WHERE rf.retailer_account_id = 32 AND rf.created_at >= '2024-06-10 03:42:31' AND rf.status IN ('initial', 'pending', 'dispute', 'offer')) as scr GROUP BY scr.created_by) as scrs
SELECT u.id AS u__id, u.title AS u__title, u.description AS u__description, u.type AS u__type, u.created_by AS u__created_by, u.updated_by AS u__updated_by, u.position AS u__position, u.deleted_at AS u__deleted_at, u.created_at AS u__created_at, u.updated_at AS u__updated_at, u.gold_members AS u__gold_members, u.privacy AS u__privacy, u.content_class_id AS u__content_class_id, u.followers_count AS u__followers_count, u.slug AS u__slug FROM user_galleries u WHERE (u.type = 'user_profile_photo' AND u.created_by = '710')
SELECT u.id AS u__id, u.dm_media_id AS u__dm_media_id, u.dm_record_id AS u__dm_record_id, u.position AS u__position, u.name AS u__name, u.legend AS u__legend, u2.id AS u2__id, u2.title AS u2__title, u2.description AS u2__description, u2.type AS u2__type, u2.created_by AS u2__created_by, u2.updated_by AS u2__updated_by, u2.position AS u2__position, u2.deleted_at AS u2__deleted_at, u2.created_at AS u2__created_at, u2.updated_at AS u2__updated_at, u2.gold_members AS u2__gold_members, u2.privacy AS u2__privacy, u2.content_class_id AS u2__content_class_id, u2.followers_count AS u2__followers_count, u2.slug AS u2__slug, d.id AS d__id, d.dm_media_folder_id AS d__dm_media_folder_id, d.file AS d__file, d.legend AS d__legend, d.mime AS d__mime, d.size AS d__size, d.dimensions AS d__dimensions, d.name AS d__name, d.validated AS d__validated, d.active AS d__active, d.uploader AS d__uploader, d.imagetypecategory AS d__imagetypecategory, d.imageindexinternal AS d__imageindexinternal, d.imfingerprint AS d__imfingerprint, d.created_at AS d__created_at, d.updated_at AS d__updated_at, d.created_by AS d__created_by, d.updated_by AS d__updated_by FROM user_galleries_dm_media u INNER JOIN user_galleries u2 ON u.dm_record_id = u2.id INNER JOIN dm_media d ON u.dm_media_id = d.id WHERE (u2.id = '1721' AND u2.type = 'user_profile_photo') ORDER BY u.position ASC
SELECT u.id AS u__id, u.title AS u__title, u.description AS u__description, u.type AS u__type, u.created_by AS u__created_by, u.updated_by AS u__updated_by, u.position AS u__position, u.deleted_at AS u__deleted_at, u.created_at AS u__created_at, u.updated_at AS u__updated_at, u.gold_members AS u__gold_members, u.privacy AS u__privacy, u.content_class_id AS u__content_class_id, u.followers_count AS u__followers_count, u.slug AS u__slug FROM user_galleries u WHERE (u.type = 'user_cover_photo' AND u.created_by = '710')
SELECT u.id AS u__id, u.dm_media_id AS u__dm_media_id, u.dm_record_id AS u__dm_record_id, u.position AS u__position, u.name AS u__name, u.legend AS u__legend, u2.id AS u2__id, u2.title AS u2__title, u2.description AS u2__description, u2.type AS u2__type, u2.created_by AS u2__created_by, u2.updated_by AS u2__updated_by, u2.position AS u2__position, u2.deleted_at AS u2__deleted_at, u2.created_at AS u2__created_at, u2.updated_at AS u2__updated_at, u2.gold_members AS u2__gold_members, u2.privacy AS u2__privacy, u2.content_class_id AS u2__content_class_id, u2.followers_count AS u2__followers_count, u2.slug AS u2__slug, d.id AS d__id, d.dm_media_folder_id AS d__dm_media_folder_id, d.file AS d__file, d.legend AS d__legend, d.mime AS d__mime, d.size AS d__size, d.dimensions AS d__dimensions, d.name AS d__name, d.validated AS d__validated, d.active AS d__active, d.uploader AS d__uploader, d.imagetypecategory AS d__imagetypecategory, d.imageindexinternal AS d__imageindexinternal, d.imfingerprint AS d__imfingerprint, d.created_at AS d__created_at, d.updated_at AS d__updated_at, d.created_by AS d__created_by, d.updated_by AS d__updated_by FROM user_galleries_dm_media u INNER JOIN user_galleries u2 ON u.dm_record_id = u2.id INNER JOIN dm_media d ON u.dm_media_id = d.id WHERE (u2.id = '1722' AND u2.type = 'user_cover_photo') ORDER BY u.position ASC
SELECT s.id AS s__id, s.name AS s__name, s.currency AS s__currency, s.local_currency AS s__local_currency, s.vat_rate AS s__vat_rate, s.is_active AS s__is_active, s.iso_2 AS s__iso_2, s.iso_3 AS s__iso_3, s.iso_num AS s__iso_num, s.distance_unit AS s__distance_unit, s.eec AS s__eec, s.actual_billing AS s__actual_billing, s.language AS s__language, s.position AS s__position FROM sca_country s WHERE (s.id = '10') ORDER BY s.name asc
SELECT COUNT(*) as num_results FROM (SELECT DISTINCT i.id FROM tt_search_engine_index i LEFT JOIN dm_user u ON i.created_by = u.id LEFT JOIN retailer_account r ON r.dm_user_id = u.id LEFT JOIN charity_account c ON c.dm_user_id = u.id WHERE i.created_by = '710' AND i.lifecycle_state = 'published' AND i.model != 'Advice' AND ((i.privacy_flag = '40')) AND ((i.circulation_flag = '0' OR i.circulation_flag = '10'))) as results
SELECT DISTINCT i.id AS i__id, i.uid AS i__uid, i.model AS i__model, i.uri AS i__uri, i.title AS i__title, i.extract AS i__extract, i.body AS i__body, i.tags AS i__tags, i.created_at AS i__created_at, i.updated_at AS i__updated_at, i.published_at AS i__published_at, i.lifecycle_state AS i__lifecycle_state, i.created_by AS i__created_by, i.privacy_gold_members AS i__privacy_gold_members, i.privacy_flag AS i__privacy_flag, i.privacy_content_class_id AS i__privacy_content_class_id, i.circulation_flag AS i__circulation_flag, i.circulation_country AS i__circulation_country, i.circulation_region AS i__circulation_region, i.circulation_city AS i__circulation_city, i.circulation_street AS i__circulation_street, i.longitude AS i__longitude, i.latitude AS i__latitude, i.store AS i__store, u.id AS u__id, u.username AS u__username, u.email AS u__email, u.algorithm AS u__algorithm, u.salt AS u__salt, u.password AS u__password, u.is_active AS u__is_active, u.is_super_admin AS u__is_super_admin, u.last_login AS u__last_login, u.forgot_password_code AS u__forgot_password_code, u.sca_address AS u__sca_address, u.notifications_read AS u__notifications_read, u.notifications_emailed AS u__notifications_emailed, u.points AS u__points, u.referrer AS u__referrer, u.image_folder AS u__image_folder, u.firstname AS u__firstname, u.lastname AS u__lastname, u.dob AS u__dob, u.gender AS u__gender, u.headline AS u__headline, u.description AS u__description, u.about AS u__about, u.hobbies AS u__hobbies, u.education AS u__education, u.employment AS u__employment, u.ethnicity AS u__ethnicity, u.smoker AS u__smoker, u.alcohol AS u__alcohol, u.build AS u__build, u.religion AS u__religion, u.marital_status AS u__marital_status, u.dependent_children AS u__dependent_children, u.want_children AS u__want_children, u.looking_for_min AS u__looking_for_min, u.looking_for_max AS u__looking_for_max, u.privacy_profile AS u__privacy_profile, u.privacy_profile_share_online AS u__privacy_profile_share_online, u.privacy_profile_share_age AS u__privacy_profile_share_age, u.privacy_profile_share_cover AS u__privacy_profile_share_cover, u.privacy_search_realname AS u__privacy_search_realname, u.privacy_search_email AS u__privacy_search_email, u.privacy_search_hobbies AS u__privacy_search_hobbies, u.privacy_accept_messages AS u__privacy_accept_messages, u.preferences_timeformat AS u__preferences_timeformat, u.currency AS u__currency, u.country AS u__country, u.notifications AS u__notifications, u.telltrail_update AS u__telltrail_update, u.coins AS u__coins, u.expire_date AS u__expire_date, u.rating AS u__rating, u.warning AS u__warning, u.suspended AS u__suspended, u.suspended_reason AS u__suspended_reason, u.membership AS u__membership, u.language AS u__language, u.referral AS u__referral, u.email_backup AS u__email_backup, u.security_question AS u__security_question, u.security_response AS u__security_response, u.phone AS u__phone, u.mobile AS u__mobile, u.notification_interval AS u__notification_interval, u.region AS u__region, u.town_city AS u__town_city, u.postcode AS u__postcode, u.street AS u__street, u.registration_code AS u__registration_code, u.password_changed AS u__password_changed, u.security_question_changed AS u__security_question_changed, u.is_in_quarantine AS u__is_in_quarantine, u.quarantine_start AS u__quarantine_start, u.quarantine_end AS u__quarantine_end, u.quarantine_time AS u__quarantine_time, u.nb_views AS u__nb_views, u.is_completed_activation AS u__is_completed_activation, u.last_activation_reminder_date AS u__last_activation_reminder_date, u.invitation_link_welcome_text AS u__invitation_link_welcome_text, u.invitation_email_welcome_text AS u__invitation_email_welcome_text, u.location_address_valid AS u__location_address_valid, u.invitation_email_message_text AS u__invitation_email_message_text, u.invitation_email_shortlink_text AS u__invitation_email_shortlink_text, u.created_at AS u__created_at, u.updated_at AS u__updated_at, u.location_address AS u__location_address, u.location_latitude AS u__location_latitude, u.location_longitude AS u__location_longitude, u.location_type AS u__location_type, u.location_street_number AS u__location_street_number, u.location_route AS u__location_route, u.location_locality AS u__location_locality, u.location_country AS u__location_country, u.location_postal_code AS u__location_postal_code, u.location_postal_code_prefix AS u__location_postal_code_prefix, u.location_administrative_area_level_1 AS u__location_administrative_area_level_1, u.location_administrative_area_level_2 AS u__location_administrative_area_level_2, u.dm_taggable_denormalized_tags_cache_field AS u__dm_taggable_denormalized_tags_cache_field, u.comments_count AS u__comments_count, u.followers_count AS u__followers_count, u.slug AS u__slug, r.id AS r__id, r.is_active AS r__is_active, r.status AS r__status, r.business_trading_name AS r__business_trading_name, r.house_building_no AS r__house_building_no, r.postcode AS r__postcode, r.town_city AS r__town_city, r.country AS r__country, r.vat_check_status AS r__vat_check_status, r.vat_number AS r__vat_number, r.vat_vies_response AS r__vat_vies_response, r.contact_name AS r__contact_name, r.contact_email AS r__contact_email, r.sponsor_promotional_code AS r__sponsor_promotional_code, r.sponsor_id AS r__sponsor_id, r.sponsor_notified AS r__sponsor_notified, r.sponsor_commission_fee AS r__sponsor_commission_fee, r.dm_user_id AS r__dm_user_id, r.admin_notes AS r__admin_notes, r.registration_code AS r__registration_code, r.official_company_name AS r__official_company_name, r.sub_building AS r__sub_building, r.street_name AS r__street_name, r.state_region AS r__state_region, r.primary_category_id AS r__primary_category_id, r.primary_category_goods AS r__primary_category_goods, r.primary_category_services AS r__primary_category_services, r.second_category_id AS r__second_category_id, r.second_category_goods AS r__second_category_goods, r.second_category_services AS r__second_category_services, r.third_category_id AS r__third_category_id, r.third_category_goods AS r__third_category_goods, r.third_category_services AS r__third_category_services, r.sd_show_full_address AS r__sd_show_full_address, r.sd_range_from_business_address AS r__sd_range_from_business_address, r.sd_range_from_business_m_km AS r__sd_range_from_business_m_km, r.sd_by_mail_email AS r__sd_by_mail_email, r.sd_chain AS r__sd_chain, r.headline AS r__headline, r.main_description AS r__main_description, r.company_logo_id AS r__company_logo_id, r.feedback_incentives_id AS r__feedback_incentives_id, r.supplier_recommendation_id AS r__supplier_recommendation_id, r.website AS r__website, r.sales_telephone AS r__sales_telephone, r.directory_status AS r__directory_status, r.directory_date_published AS r__directory_date_published, r.created_at AS r__created_at, r.updated_at AS r__updated_at, r.dm_taggable_denormalized_tags_cache_field AS r__dm_taggable_denormalized_tags_cache_field, r.location_address AS r__location_address, r.location_latitude AS r__location_latitude, r.location_longitude AS r__location_longitude, r.location_type AS r__location_type, r.location_street_number AS r__location_street_number, r.location_route AS r__location_route, r.location_locality AS r__location_locality, r.location_country AS r__location_country, r.location_postal_code AS r__location_postal_code, r.location_postal_code_prefix AS r__location_postal_code_prefix, r.location_administrative_area_level_1 AS r__location_administrative_area_level_1, r.location_administrative_area_level_2 AS r__location_administrative_area_level_2, c.id AS c__id, c.is_active AS c__is_active, c.status AS c__status, c.dm_user_id AS c__dm_user_id, c.charity_name AS c__charity_name, c.official_name AS c__official_name, c.charity_number AS c__charity_number, c.website AS c__website, c.charity_logo_id AS c__charity_logo_id, c.primary_category_id AS c__primary_category_id, c.second_category_id AS c__second_category_id, c.third_category_id AS c__third_category_id, c.sd_show_full_address AS c__sd_show_full_address, c.sd_range_from_charity_address AS c__sd_range_from_charity_address, c.sd_range_from_charity_m_km AS c__sd_range_from_charity_m_km, c.sd_by_mail_email AS c__sd_by_mail_email, c.sd_chain AS c__sd_chain, c.headline AS c__headline, c.main_description AS c__main_description, c.house_building_no AS c__house_building_no, c.postcode AS c__postcode, c.town_city AS c__town_city, c.country AS c__country, c.sub_building AS c__sub_building, c.street_name AS c__street_name, c.state_region AS c__state_region, c.contact_name AS c__contact_name, c.directory_status AS c__directory_status, c.directory_date_published AS c__directory_date_published, c.created_at AS c__created_at, c.updated_at AS c__updated_at, c.dm_taggable_denormalized_tags_cache_field AS c__dm_taggable_denormalized_tags_cache_field FROM tt_search_engine_index i LEFT JOIN dm_user u ON i.created_by = u.id LEFT JOIN retailer_account r ON r.dm_user_id = u.id LEFT JOIN charity_account c ON c.dm_user_id = u.id WHERE i.created_by = '710' AND i.lifecycle_state = 'published' AND i.model != 'Advice' AND ((i.privacy_flag = '40')) AND ((i.circulation_flag = '0' OR i.circulation_flag = '10')) ORDER BY i.created_at DESC LIMIT 10 OFFSET 0
SELECT COUNT(*) AS num_results FROM business_category b WHERE b.id = '1'
SELECT AVG(user_avg_score) as active_avg_score FROM (SELECT user_id, AVG(score) AS user_avg_score FROM (SELECT created_by AS user_id, score, (SELECT COUNT(*) FROM retailer_feedback_report WHERE rfd.created_by = created_by) FROM (SELECT created_by, score FROM retailer_feedback_report rf WHERE rf.retailer_account_id = 32 AND rf.created_at >= '2024-06-10 03:42:31' AND rf.status IN ('implicitly_accepted', 'immediately_accepted', 'unsatisfied_conclusion', 'unsatisfied_conclusion_offer_rejected', 'satisfactory_conclusion_with_improved_score', 'satisfactory_conclusion_without_improved_score', 'satisfactory_conclusion_offer_accepted') ORDER BY created_by , score) as rfd) AS scr GROUP BY user_id) as user_avg_score
SELECT COUNT(grouped_scores) as active_total_reports FROM (SELECT COUNT(scr.score) as grouped_scores FROM ( SELECT rf.score, rf.created_by FROM retailer_feedback_report rf WHERE rf.retailer_account_id = 32 AND rf.created_at >= '2024-06-10 03:42:31' AND rf.status IN ('implicitly_accepted', 'immediately_accepted', 'unsatisfied_conclusion', 'unsatisfied_conclusion_offer_rejected', 'satisfactory_conclusion_with_improved_score', 'satisfactory_conclusion_without_improved_score', 'satisfactory_conclusion_offer_accepted')) as scr GROUP BY scr.created_by) as scrs
SELECT AVG(user_avg_score) as pending_avg_score FROM (SELECT user_id, AVG(score) AS user_avg_score FROM (SELECT created_by AS user_id, score, (SELECT COUNT(*) FROM retailer_feedback_report WHERE rfd.created_by = created_by) FROM (SELECT created_by, score FROM retailer_feedback_report rf WHERE rf.retailer_account_id = 32 AND rf.created_at >= '2024-06-10 03:42:31' AND rf.status IN ('initial', 'pending', 'dispute', 'offer') ORDER BY created_by , score) as rfd) AS scr GROUP BY user_id) as user_avg_score
SELECT COUNT(grouped_scores) as pending_total_reports FROM (SELECT COUNT(scr.score) as grouped_scores FROM ( SELECT rf.score, rf.created_by FROM retailer_feedback_report rf WHERE rf.retailer_account_id = 32 AND rf.created_at >= '2024-06-10 03:42:31' AND rf.status IN ('initial', 'pending', 'dispute', 'offer')) as scr GROUP BY scr.created_by) as scrs
SELECT d.id AS d__id, d.name AS d__name, r.id AS r__id, r.dm_tag_id AS r__dm_tag_id FROM dm_tag d LEFT JOIN retailer_account_dm_tag r ON d.id = r.dm_tag_id WHERE (r.id IN ('32'))
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'welcomeConsumer')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'aboutTelltrail')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'contactUs')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'faqs')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'termsAndConditions')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'privacyAndCookies')
SELECT d.id AS d__id, d.module AS d__module, d.action AS d__action, d.record_id AS d__record_id, d.credentials AS d__credentials, d.lft AS d__lft, d.rgt AS d__rgt, d.level AS d__level, d2.id AS d2__id, d2.slug AS d2__slug, d2.name AS d2__name, d2.title AS d2__title, d2.h1 AS d2__h1, d2.description AS d2__description, d2.keywords AS d2__keywords, d2.auto_mod AS d2__auto_mod, d2.is_active AS d2__is_active, d2.is_secure AS d2__is_secure, d2.is_indexable AS d2__is_indexable, d2.lang AS d2__lang FROM dm_page d LEFT JOIN dm_page_translation d2 ON ((d.id = d2.id AND d2.lang = 'en')) WHERE (d.module = 'main' AND d.action = 'fairUsage')