POST-ID:21126
array(6) {
[0]=>
object(WP_Term)#6465 (11) {
["term_id"]=>
int(196)
["name"]=>
string(15) "Healthier roast"
["slug"]=>
string(15) "healthier-roast"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(196)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(22) "Better-for-you roasts."
["parent"]=>
int(0)
["count"]=>
int(19)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[1]=>
object(WP_Term)#6627 (11) {
["term_id"]=>
int(7)
["name"]=>
string(13) "Healthy lunch"
["slug"]=>
string(13) "healthy-lunch"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(7)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(51) "Keep your healthy eating regime on the right track."
["parent"]=>
int(0)
["count"]=>
int(65)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[2]=>
object(WP_Term)#6546 (11) {
["term_id"]=>
int(8)
["name"]=>
string(13) "Healthy roast"
["slug"]=>
string(13) "healthy-roast"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(8)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(22) "Better-for-you roasts."
["parent"]=>
int(0)
["count"]=>
int(18)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[3]=>
object(WP_Term)#6545 (11) {
["term_id"]=>
int(100)
["name"]=>
string(6) "Roasts"
["slug"]=>
string(6) "roasts"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(100)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(0) ""
["parent"]=>
int(0)
["count"]=>
int(42)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[4]=>
object(WP_Term)#6544 (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(9)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[5]=>
object(WP_Term)#6543 (11) {
["term_id"]=>
int(260)
["name"]=>
string(28) "Vegetarian Christmas recipes"
["slug"]=>
string(20) "vegetarian-christmas"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(260)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(95) "Enticing meat-free recipes for the festive season, including main courses, starters and snacks."
["parent"]=>
int(0)
["count"]=>
int(65)
["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 ( 196, 78100904260 ) OR rd.ingredients LIKE '%Alternative christmas dinner%' OR rd.ingredients LIKE '% Celeriac%' OR rd.ingredients LIKE '% Christmas%' OR rd.ingredients LIKE '% Hazelnuts%' OR rd.ingredients LIKE '% Truffle%' OR rd.ingredients LIKE '% Veggie christmas main course%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 21126 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16