# Wed Sep 17 10:10:41 2008
# Query_time: 2  Lock_time: 0  Rows_sent: 0  Rows_examined: 1
use theclari_clarionReport;
SELECT * FROM wp_comments WHERE comment_post_ID = '379' AND comment_approved = '1' ORDER BY comment_date

# Wed Sep 17 10:47:36 2008
# Query_time: 3  Lock_time: 0  Rows_sent: 7  Rows_examined: 46
use theclari_rugProd;
SELECT a.id, a.title, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.attribs, a.hits, a.images, a.urls, a.ordering, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, cc.title AS category, g.name AS groups FROM jos_content AS a INNER JOIN jos_categories AS cc ON cc.id = a.catid LEFT JOIN jos_sections AS s ON s.id = a.sectionid LEFT JOIN jos_users AS u ON u.id = a.created_by LEFT JOIN jos_groups AS g ON a.access = g.id WHERE a.access <= 0 AND s.id = 10 AND s.access <= 0 AND cc.access <= 0 AND s.published = 1 AND cc.published = 1 AND a.state = 1 AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '2008-09-17 16:47:33' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '2008-09-17 16:47:33' ) ORDER BY  a.created DESC LIMIT 0, 7

# Wed Sep 17 10:47:38 2008
# Query_time: 2  Lock_time: 0  Rows_sent: 1  Rows_examined: 49
use theclari_rugProd;
SELECT a.*, COUNT( b.id ) AS numitems, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug FROM jos_categories AS a LEFT JOIN jos_content AS b ON b.catid = a.id AND b.state = 1 AND ( b.publish_up = '0000-00-00 00:00:00' OR b.publish_up <= '2008-09-17 16:47' ) AND ( b.publish_down = '0000-00-00 00:00:00' OR b.publish_down >= '2008-09-17 16:47' ) AND b.access <= 0 WHERE a.section = 10 AND a.published = 1 AND a.access <= 0 GROUP BY a.id HAVING numitems > 0 ORDER BY a.ordering

