WordPress.org

Forums

[resolved] WHERE 1=1 in $wp_query (3 posts)

  1. AndreSC
    Member
    Posted 7 years ago #

    looking at the MySQL queries that WordPress creates they always seem to start with WHERE 1=1

    can anyone explain why or what this is? :-/

  2. Kafkaesqui

    Posted 7 years ago #

    http://www.novicksoftware.com/TipsAndTricks/tip-sql-server-where-1-equals-2.htm

    See last paragraph at above link for an explanation.

  3. AndreSC
    Member
    Posted 7 years ago #

    thanx!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags