POST-ID:20308
array(9) {
[0]=>
object(WP_Term)#15800 (11) {
["term_id"]=>
int(169)
["name"]=>
string(16) "200-400 calories"
["slug"]=>
string(16) "200-400-calories"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(169)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(35) "Our favourite low calorie dishes..."
["parent"]=>
int(0)
["count"]=>
int(292)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[1]=>
object(WP_Term)#15801 (11) {
["term_id"]=>
int(103)
["name"]=>
string(20) "Child-friendly meals"
["slug"]=>
string(14) "little-nibbles"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(103)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(0) ""
["parent"]=>
int(0)
["count"]=>
int(21)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[2]=>
object(WP_Term)#15805 (11) {
["term_id"]=>
int(153)
["name"]=>
string(20) "Cooking for the kids"
["slug"]=>
string(20) "cooking-for-the-kids"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(153)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(58) "Whip up these quick and simple recipes for the little ones"
["parent"]=>
int(0)
["count"]=>
int(53)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[3]=>
object(WP_Term)#15722 (11) {
["term_id"]=>
int(23)
["name"]=>
string(11) "Kids baking"
["slug"]=>
string(11) "kids-baking"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(23)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(0) ""
["parent"]=>
int(0)
["count"]=>
int(60)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[4]=>
object(WP_Term)#16593 (11) {
["term_id"]=>
int(293)
["name"]=>
string(12) "Kids cooking"
["slug"]=>
string(12) "kids-cooking"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(293)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(55) "Get those budding Jamies and Nigellas into the kitchen."
["parent"]=>
int(0)
["count"]=>
int(74)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[5]=>
object(WP_Term)#15820 (11) {
["term_id"]=>
int(179)
["name"]=>
string(11) "Kids' party"
["slug"]=>
string(10) "kids-party"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(179)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(0) ""
["parent"]=>
int(0)
["count"]=>
int(65)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[6]=>
object(WP_Term)#15828 (11) {
["term_id"]=>
int(330)
["name"]=>
string(5) "Pizza"
["slug"]=>
string(5) "pizza"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(330)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(45) "Put down the takeaway menu and make your own."
["parent"]=>
int(0)
["count"]=>
int(46)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[7]=>
object(WP_Term)#15723 (11) {
["term_id"]=>
int(178)
["name"]=>
string(6) "Snacks"
["slug"]=>
string(6) "snacks"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(178)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(0) ""
["parent"]=>
int(0)
["count"]=>
int(68)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[8]=>
object(WP_Term)#15798 (11) {
["term_id"]=>
int(904)
["name"]=>
string(12) "Sunday lunch"
["slug"]=>
string(12) "sunday-lunch"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(904)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(0) ""
["parent"]=>
int(0)
["count"]=>
int(66)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
}
SELECT p.ID, p.post_title, rd.recipe_data_ref_id, rd.photo_file_name, rd.photo_src, rd.skill_level FROM bbc20may18_posts p LEFT JOIN bbc20may18_term_relationships tr ON (p.ID = tr.object_id) LEFT JOIN bbc20may18_recipes_data rd ON (p.ID = rd.recipe_post_id) WHERE (tr.term_taxonomy_id IN ( 169, 10315323293179330178904 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 20308 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16