You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT wp_posts.* FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id )
718
+
WHERE 1=1 AND (
719
+
wp_posts.post_date > '2024-07-17 23:59:59'
720
+
) AND (
721
+
wp_postmeta.meta_key = 'make_feature_post'
722
+
) AND (
723
+
(wp_posts.post_type = 'announcement' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled' OR wp_posts.post_status = 'private'))
724
+
)
725
+
GROUP BY wp_posts.ID
726
+
ORDER BY wp_postmeta.meta_value+0 DESC, wp_posts.post_date DESC
727
+
SQL;
728
+
729
+
$expected = <<<SQL
730
+
SELECT wp_posts.* FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts."ID" = wp_postmeta.post_id )
731
+
WHERE 1=1 AND (
732
+
wp_posts.post_date > '2024-07-17 23:59:59'
733
+
) AND (
734
+
wp_postmeta.meta_key = 'make_feature_post'
735
+
) AND (
736
+
(wp_posts.post_type = 'announcement' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled' OR wp_posts.post_status = 'private'))
737
+
)
738
+
739
+
ORDER BY CAST(wp_postmeta.meta_value AS INTEGER) DESC, wp_posts.post_date DESC
0 commit comments