[wp-trac] [WordPress Trac] #5471: ?feed=rss2&p=-1 results in db error, showing sql query (table prefixes)

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 15 18:23:10 GMT 2007


#5471: ?feed=rss2&p=-1 results in db error, showing sql query (table prefixes)
-----------------------+----------------------------------------------------
 Reporter:  lloydbudd  |       Owner:  anonymous
     Type:  defect     |      Status:  new      
 Priority:  normal     |   Milestone:  2.4      
Component:  Security   |     Version:  2.4      
 Severity:  normal     |    Keywords:           
-----------------------+----------------------------------------------------
 ?feed=rss2&p=-1 results in db error, showing sql query (table prefixes)

 ENV: WordPress trunk r6385 [[br]]
 * WP 2.0.9 bug doesn't repro

 ACTUAL RESULT: [[br]]
 {{{
 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 'AND comment_approved = '1' ORDER BY comment_date_gmt DESC
 LIMIT 10' at line 1]
 SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = AND
 comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 10
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5471>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list