Skip to content

Instantly share code, notes, and snippets.

@silentworks
Forked from anonymous/gist:976409
Created May 17, 2011 14:01
Show Gist options
  • Save silentworks/976515 to your computer and use it in GitHub Desktop.
Save silentworks/976515 to your computer and use it in GitHub Desktop.
Select Query from MySQL with OR
SELECT *
FROM `content`
WHERE (content_finish >= '2011-05-17 23:00:00' OR content_finish IS NULL)
AND `content_status` = 'published'
AND `content_parent` IN ('17', '38', '54', '10', '34', '66', '68', '67', '76', '77', '75', '79', '86', '79', '18')
ORDER BY `content_updated` desc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment