WordPress database error: [Table 'phatman.wp_categories' doesn't exist]
SELECT count(*) cnt
FROM wp_categories
WHERE category_parent = 12
WordPress database error: [Table 'phatman.wp_post2cat' doesn't exist]
SELECT post_id
FROM wp_post2cat
WHERE category_id = 12
If you want to get notified when I write an update, this link will do the trick.
WordPress database error: [Table 'phatman.wp_categories' doesn't exist]
SELECT category_nicename FROM wp_categories WHERE cat_id=12
WordPress database error: [Table 'phatman.wp_post2cat' doesn't exist]
SELECT DISTINCT MONTH(post_date) AS month, YEAR(post_date) AS year
FROM wp_posts as p,wp_post2cat as pc
WHERE post_date < '2008-11-01'
AND post_status = 'publish' AND p.ID=pc.post_id AND pc.category_id=1
ORDER BY post_date DESC
LIMIT 1
WordPress database error: [Table 'phatman.wp_post2cat' doesn't exist]
SELECT DISTINCT MONTH(post_date) AS month, YEAR(post_date) AS year
FROM wp_posts as p,wp_post2cat as pc
WHERE post_date > '2008-11-01'
AND MONTH( post_date ) != MONTH( '2008-11-01' )
AND post_status = 'publish' AND p.ID=pc.post_id AND pc.category_id=1
ORDER BY post_date ASC
LIMIT 1
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | ||||||