You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ” at line 38095

enter image description here

$query_post1 = "SELECT DISTINCT n.recipe_id, n.recipe_title, n.cat_id, n.recipe_time,n.price,n.discountprice, n.recipe_image, n.recipe_description, n.video_url, n.video_id, n.content_type, n.featured, n.tags, n.total_views,COUNT(DISTINCT r.comment_id) as comments_count, c.category_name FROM tbl_recipes1 n LEFT JOIN tbl_category1 c ON n.cat_id = c.cid
                    LEFT JOIN tbl_comments1 r ON n.recipe_id  = r.recipe_id
                    WHERE n.content_type = 'Post' AND c.cid = .$row[1] ";

Khám phá các thẻ bài đăng