SG
Size: a a a
SG
SG
Е
Е
recipes
.*, (select count(*) from users
inner join recipe_saves
on users
.id
= recipe_saves
.user_id
where recipes
.id
= recipe_saves
.recipe_id`) as `saves_count
from recipes
where state
not in (0, 1) and exists (select * from ingredients
inner join recipe_ingredients
on ingredients
.id
= recipe_ingredients
.ingredient_id
where recipes
.id
= recipe_ingredients
.recipe_id
and id
in (5)) order by id
desc)SG
SG
and id in (5)
SG
$builder->whereIn('название_таблицы.id', $ingredients);
SG
AH
Е
AH
Е
AH
SG
Е
AH
AH
SG
AH
MB