diff --git a/business/model/dao/food_recipe.go b/business/model/dao/food_recipe.go index c436eecee..8f6b27e65 100644 --- a/business/model/dao/food_recipe.go +++ b/business/model/dao/food_recipe.go @@ -34,7 +34,7 @@ func QueryFoodRecipes(db *DaoDB, keyword string, recipeID int, authorID, userID t1.*, t2.action_type, t3.name author_name FROM food_recipe t1 LEFT JOIN food_recipe_user t2 ON t2.recipe_id = t1.id AND t2.user_id = ? AND t2.deleted_at = ? - LEFT user t3 ON t3.user_id = t1.author_id + LEFT JOIN user t3 ON t3.user_id = t1.author_id WHERE t1.deleted_at = ?` sqlParams = []interface{}{ userID,