POST-ID:21154
array(7) {
[0]=>
object(WP_Term)#16482 (11) {
["term_id"]=>
int(343)
["name"]=>
string(13) "Batch cooking"
["slug"]=>
string(13) "batch-cooking"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(343)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(153) "Need to get ahead with food prep for the week? Try batch-cooking one of our easy dinners or bakes, then freezing the leftovers for a speedy midweek meal."
["parent"]=>
int(0)
["count"]=>
int(52)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[1]=>
object(WP_Term)#16374 (11) {
["term_id"]=>
int(37)
["name"]=>
string(10) "Dairy free"
["slug"]=>
string(10) "dairy-free"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(37)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(52) "Easy recipes for when you’re cutting out dairy"
["parent"]=>
int(0)
["count"]=>
int(55)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[2]=>
object(WP_Term)#17258 (11) {
["term_id"]=>
int(347)
["name"]=>
string(9) "Freezable"
["slug"]=>
string(9) "freezable"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(347)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(40) "Get ahead with freezer-friendly recipes."
["parent"]=>
int(0)
["count"]=>
int(56)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[3]=>
object(WP_Term)#16493 (11) {
["term_id"]=>
int(424)
["name"]=>
string(19) "Freezable Christmas"
["slug"]=>
string(19) "freezable-christmas"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(424)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(0) ""
["parent"]=>
int(0)
["count"]=>
int(45)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[4]=>
object(WP_Term)#16458 (11) {
["term_id"]=>
int(21)
["name"]=>
string(21) "New ways with risotto"
["slug"]=>
string(21) "new-ways-with-risotto"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(21)
["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)#16391 (11) {
["term_id"]=>
int(335)
["name"]=>
string(4) "Soup"
["slug"]=>
string(4) "soup"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(335)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(39) "Be bowled over by our nourishing soups."
["parent"]=>
int(0)
["count"]=>
int(106)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[6]=>
object(WP_Term)#16477 (11) {
["term_id"]=>
int(258)
["name"]=>
string(14) "Turkey recipes"
["slug"]=>
string(6) "turkey"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(258)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(101) "From the traditional roast to more modern versions, we've got the perfect turkey recipe for you."
["parent"]=>
int(0)
["count"]=>
int(42)
["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 ( 343, 3734742421335258 ) OR rd.ingredients LIKE '%Christmas%' OR rd.ingredients LIKE '% Leftovers%' OR rd.ingredients LIKE '% Stock%' OR rd.ingredients LIKE '% Turkey%' OR rd.ingredients LIKE '% Turkey leftovers%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 21154 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16