SELECT
    food.id,
    food.portion,
    food.name,
    food.kc_per_serving,
    food.target_servings,
    coalesce(day_serving.servings_eaten, 0) as servings_eaten,
    food.color
FROM
    food
LEFT JOIN
	day_serving
ON
	day_serving.food_id = food.id
	AND	coalesce(day_serving.day, CURRENT_DATE) = CURRENT_DATE
ORDER BY
    sort_order, name;

