WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#15310 closed defect (bug) (worksforme)

orderby and order clause broken in query_posts on v.3.0.1

Reported by: _rwg Owned by:
Milestone: Priority: normal
Severity: major Version: 3.0.1
Component: Query Keywords: reporter-feedback
Focuses: Cc:

Description

[03-Nov-2010 19:38:53] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'menu_order ASC LIMIT 0, 7' at line 1 for query SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'page' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') ORDER BY ,menu_order ASC LIMIT 0, 7 made by require, require_once, include, query_posts, WP_Query->query, WP_Query->get_posts

Change History (3)

comment:1 _rwg3 years ago

  • Cc _rwg added

comment:2 scribu3 years ago

  • Keywords reporter-feedback added

Did you try disabling all plugins and switching to the twentyten theme?

comment:3 nacin3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.