Test Last

XXX: :XXX

YYY: class3-371 :YYY

ZZZ: Query:
SELECT ID, post_title, post_name, m.meta_value AS "day_name", n.meta_value AS "week_name" FROM wp_posts p left join wp_postmeta m on ((p.id = m.post_id) and (m.meta_key = "backfit-day"))left join wp_postmeta n on ((p.id = n.post_id) and (n.meta_key = "backfit-week"))where post_type in ("page", "post") and post_status = "publish" and post_name like 'class3-1%' order by post_name, m.meta_key limit 500
Error:
$results: Array ( [0] => Array ( [ID] => 2569 [post_title] => Welcome to the programme! [post_name] => class3-111 [day_name] => What You Need To Know [week_name] => Prep Week ) [1] => Array ( [ID] => 2576 [post_title] => Workout Disclaimer [post_name] => class3-112 [day_name] => [week_name] => ) [2] => Array ( [ID] => 2583 [post_title] => What You Will Need [post_name] => class3-121 [day_name] => Tools To Get You Started [week_name] => ) [3] => Array ( [ID] => 2657 [post_title] => Preparing Your Core [post_name] => class3-122 [day_name] => [week_name] => ) [4] => Array ( [ID] => 2661 [post_title] => Goal Setting [post_name] => class3-123 [day_name] => [week_name] => ) )

:ZZZ

ZZZ: :ZZZ