Advertising sweets

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND p.post_status = 'publish' AND p.post_type = 'product'' at line 4]
SELECT p.* FROM su2022_posts p WHERE p.id = AND p.post_status = 'publish' AND p.post_type = 'product'