1 |
0.59 ms |
SELECT t0.id AS id_1, t0.nickname AS nickname_2, t0.email AS email_3, t0.birth AS birth_4, t0.gender AS gender_5, t0.ethnicity AS ethnicity_6, t0.avatar AS avatar_7, t0.about AS about_8, t0.homepage AS homepage_9, t0.reg_date AS reg_date_10, t0.role AS role_11, t0.status AS status_12, t0.fake AS fake_13, t0.photos_dir_num AS photos_dir_num_14, t0.name_first AS name_first_15, t0.name_last AS name_last_16, t0.location_ip AS location_ip_17, t0.location_country AS location_country_18, t0.location_state AS location_state_19, t0.location_city AS location_city_20, t0.location_country_code AS location_country_code_21, t22.id AS id_23, t22.dark_theme AS dark_theme_24, t22.show_social_links_in_profile AS show_social_links_in_profile_25, t22.user_id AS user_id_26 FROM user_users t0 LEFT JOIN user_settings t22 ON t22.user_id = t0.id WHERE t0.nickname = ? LIMIT 1
Parameters: [
"profile2"
]
SELECT t0.id AS id_1, t0.nickname AS nickname_2, t0.email AS email_3, t0.birth AS birth_4, t0.gender AS gender_5, t0.ethnicity AS ethnicity_6, t0.avatar AS avatar_7, t0.about AS about_8, t0.homepage AS homepage_9, t0.reg_date AS reg_date_10, t0.role AS role_11, t0.status AS status_12, t0.fake AS fake_13, t0.photos_dir_num AS photos_dir_num_14, t0.name_first AS name_first_15, t0.name_last AS name_last_16, t0.location_ip AS location_ip_17, t0.location_country AS location_country_18, t0.location_state AS location_state_19, t0.location_city AS location_city_20, t0.location_country_code AS location_country_code_21, t22.id AS id_23, t22.dark_theme AS dark_theme_24, t22.show_social_links_in_profile AS show_social_links_in_profile_25, t22.user_id AS user_id_26 FROM user_users t0 LEFT JOIN user_settings t22 ON t22.user_id = t0.id WHERE t0.nickname = 'profile2' LIMIT 1;
|
2 |
0.53 ms |
SELECT COUNT(*) FROM (SELECT u.id, u.nickname, u.fake, TRIM(CONCAT(u.name_first, ' ', u.name_last)) AS name, c.text, c.reply_to, p.title, p.url FROM blog_post_comments c INNER JOIN user_users u ON c.author_id = u.id INNER JOIN blog_posts p ON c.post_id = p.id WHERE (c.author_id = ?) AND (c.approved = 1)) tmp
SELECT COUNT(*) FROM (SELECT u.id, u.nickname, u.fake, TRIM(CONCAT(u.name_first, ' ', u.name_last)) AS name, c.text, c.reply_to, p.title, p.url FROM blog_post_comments c INNER JOIN user_users u ON c.author_id = u.id INNER JOIN blog_posts p ON c.post_id = p.id WHERE (c.author_id = 2) AND (c.approved = 1)) tmp;
|
7 |
0.45 ms |
SELECT p.url, p.title, p.cover, p.date, c.id AS category_id, c.name AS category_name, a.name AS author_name, a.url AS author_url, (SELECT COUNT(m.id) FROM blog_post_comments m WHERE m.post_id = p.id AND m.approved = 1) AS comments_count FROM blog_posts p INNER JOIN blog_authors a ON p.author_id = a.id INNER JOIN blog_categories c ON p.category_id = c.id WHERE p.id IN(NULL)
SELECT p.url, p.title, p.cover, p.date, c.id AS category_id, c.name AS category_name, a.name AS author_name, a.url AS author_url, (SELECT COUNT(m.id) FROM blog_post_comments m WHERE m.post_id = p.id AND m.approved = 1) AS comments_count FROM blog_posts p INNER JOIN blog_authors a ON p.author_id = a.id INNER JOIN blog_categories c ON p.category_id = c.id WHERE p.id IN(NULL);
|