POST-ID:1088
array(5) {
[0]=>
object(WP_Term)#15813 (11) {
["term_id"]=>
int(138)
["name"]=>
string(18) "Fantastic fillings"
["slug"]=>
string(18) "fantastic-fillings"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(138)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(106) "Forget flat, soggy sandwiches and inject some excitement into your sliced white with our fancy fillings..."
["parent"]=>
int(0)
["count"]=>
int(17)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[1]=>
object(WP_Term)#15927 (11) {
["term_id"]=>
int(205)
["name"]=>
string(16) "Healthy sandwich"
["slug"]=>
string(16) "healthy-sandwich"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(205)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(102) "Rolls, bagels, baps and wraps - make a lunchtime bite that's delicious, filling and nutritious..."
["parent"]=>
int(0)
["count"]=>
int(21)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[2]=>
object(WP_Term)#15892 (11) {
["term_id"]=>
int(333)
["name"]=>
string(8) "Sandwich"
["slug"]=>
string(8) "sandwich"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(333)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(155) "Try new fillings and toppings for your sandwiches, wraps and buns. Our next level sarnies include classic club sandwiches, baguettes and picnic favourites."
["parent"]=>
int(0)
["count"]=>
int(43)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[3]=>
object(WP_Term)#15831 (11) {
["term_id"]=>
int(413)
["name"]=>
string(10) "Vegetarian"
["slug"]=>
string(10) "vegetarian"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(413)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(43) "Meat-free recipes for entertaining and more"
["parent"]=>
int(0)
["count"]=>
int(556)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[4]=>
object(WP_Term)#15910 (11) {
["term_id"]=>
int(396)
["name"]=>
string(21) "Vegetarian sandwiches"
["slug"]=>
string(21) "vegetarian-sandwiches"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(396)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(52) "These tasty sarnies are perfect for work-day lunches"
["parent"]=>
int(0)
["count"]=>
int(23)
["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 ( 138, 205333413396 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 1088 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16