Make WordPress Core

Opened 10 years ago

Closed 10 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:


[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)

#1 @_rwg
10 years ago

  • Cc _rwg added

#2 @scribu
10 years ago

  • Keywords reporter-feedback added

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

#3 @nacin
10 years ago

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