POST-ID:34252
array(5) {
[0]=>
object(WP_Term)#16177 (11) {
["term_id"]=>
int(299)
["name"]=>
string(5) "Greek"
["slug"]=>
string(5) "greek"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(299)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(85) "Mediterranean flavours using core ingredients, including feta cheese and tender lamb."
["parent"]=>
int(0)
["count"]=>
int(22)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[1]=>
object(WP_Term)#16181 (11) {
["term_id"]=>
int(197)
["name"]=>
string(7) "Healthy"
["slug"]=>
string(7) "healthy"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(197)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(52) "Packed with the good stuff to get you feeling great."
["parent"]=>
int(0)
["count"]=>
int(160)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[2]=>
object(WP_Term)#16142 (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(159)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[3]=>
object(WP_Term)#16101 (11) {
["term_id"]=>
int(121)
["name"]=>
string(21) "Heart-healthy recipes"
["slug"]=>
string(21) "heart-healthy-recipes"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(121)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(133) "We’ve created a collection of ultimate heart-friendly recipes. Discover which ingredients you should be packing into your diet."
["parent"]=>
int(0)
["count"]=>
int(52)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[4]=>
object(WP_Term)#16161 (11) {
["term_id"]=>
int(154)
["name"]=>
string(13) "Summer salads"
["slug"]=>
string(13) "summer-salads"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(154)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(99) "These light, refreshing and nutritious salads are perfect for tucking into during the hotter months"
["parent"]=>
int(0)
["count"]=>
int(114)
["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 ( 299, 1977121154 ) OR rd.ingredients LIKE '%Feta%' OR rd.ingredients LIKE '% Olives%' OR rd.ingredients LIKE '% Open sandwich%' OR rd.ingredients LIKE '% Sandwiches%' OR rd.ingredients LIKE '% Sourdough%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 34252 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16