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 'as terms
INNER JOIN as term_taxonomy
ON term_taxonomy.term_id = term' at line 2]
SELECT terms.term_id
FROM as terms
INNER JOIN as term_taxonomy
ON term_taxonomy.term_id = terms.term_id
AND term_taxonomy.taxonomy = 'category'
INNER JOIN as term_relationships
ON term_relationships.term_taxonomy_id = term_taxonomy.term_taxonomy_id
INNER JOIN wp_posts as posts
ON posts.ID = term_relationships.object_id
WHERE terms.slug = 'blog'
LIMIT 1
WordPress database error: [Table 'theemsad_wrdp1.wp_post2cat' doesn't exist]
SELECT post_id, category_id FROM wp_post2cat WHERE post_id IN (1)