# Tue Jul 29 23:48:33 2008
# Query_time: 2  Lock_time: 0  Rows_sent: 1  Rows_examined: 0
use theclari_rugProd;
SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, 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, g.name AS groups, s.published AS sec_pub, cc.published AS cat_pub, s.access AS sec_access, cc.access AS cat_access  FROM jos_content AS a LEFT JOIN jos_categories AS cc ON cc.id = a.catid LEFT JOIN jos_sections AS s ON s.id = cc.section AND s.scope = "content" 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.id = 9 AND a.access <= 0 AND (  ( a.created_by = 0 )    OR  ( a.state = 1 OR a.state = -1) AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2008-07-30 05:48:31' ) AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2008-07-30 05:48:31' ) )

# Tue Jul 29 23:59:06 2008
# Query_time: 2  Lock_time: 0  Rows_sent: 1  Rows_examined: 286
use theclari_clarionReport;
SELECT SQL_CALC_FOUND_ROWS  wp_posts.* FROM wp_posts  WHERE 1=1  AND YEAR(post_date)='2008' AND MONTH(post_date)='7' AND DAYOFMONTH(post_date)='3' AND (post_type = 'post' AND (post_status = 'publish'))  ORDER BY post_date DESC LIMIT 0, 10

