Skip to content

Instantly share code, notes, and snippets.

Created May 17, 2011 14:42
Show Gist options
  • Save anonymous/976600 to your computer and use it in GitHub Desktop.
Save anonymous/976600 to your computer and use it in GitHub Desktop.
$sql = "SELECT *
FROM `content`
WHERE (content_finish >= ? OR content_finish IS NULL)
AND `content_status` = 'published'
AND `content_parent` IN (?)
ORDER BY `content_updated` desc";
$this->db->query($sql, array($now, $content_ids));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment