Guest
Public paste!

Untitled

By: a guest | Mar 22nd, 2010 | Syntax: None | Size: 0.35 KB | Hits: 81 | Expires: Never
Copy text to clipboard
  1. mysql> select count(*) from wp_comments where comment_post_id = (select ID from wp_posts where post_name = '') and comment_approved = 1;
  2. ERROR 1242 (21000): Subquery returns more than 1 row
  3. mysql> select ID from wp_posts where post_name = ''
  4.     -> ;
  5. +-------+
  6. | ID    |
  7. +-------+
  8. |  1087 |
  9. | 20541 |
  10. | 23011 |
  11. +-------+
  12. 3 rows in set (0.00 sec)