user warning: Expression #1 of ORDER BY clause is not in SELECT list, references column 'karlrees_drupal5.n.created' which is not in SELECT list; this is incompatible with DISTINCT
query: SELECT DISTINCT(n.nid) FROM waynemadsen_node n INNER JOIN waynemadsen_node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 0 AND na.realm = 'example_author'))) AND ( (n.created >= 1312156800) and (n.created < 1314835200) AND (n.status = 1) AND n.type IN ('book','bookreview','faq','aggregation_feed','aggregation_item','page','poll','quotes','recipe','story','webcam','amazon','amazon_node') ) ORDER BY n.created ASC in /mnt/volume_sfo3_01/www/drupal/includes/database.mysql.inc on line 174.