[wp-trac] [WordPress Trac] #15310: orderby and order clause broken in query_posts on v.3.0.1
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 3 20:03:41 UTC 2010
#15310: orderby and order clause broken in query_posts on v.3.0.1
--------------------------+-------------------------------------------------
Reporter: _rwg | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.0.1
Severity: major | Keywords:
--------------------------+-------------------------------------------------
[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
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15310>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list