Correct SQL query generated by get_metadata_with_session (#57225)
Correct SQL query generated by get_metadata_with_session (#57225)

Co-authored-by: Franck Nijhof <46f1a0bd5592a2f9244ca321b129902a06b53e03@frenck.dev>
mezz64/home-assistant,rohitranjan1991/home-assistant,w1ll1am23/home-assistant,jawilson/home-assistant,jawilson/home-assistant,rohitranjan1991/home-assistant,toddeye/home-assistant,GenericStudent/home-assistant,home-assistant/home-assistant,w1ll1am23/home-assistant,GenericStudent/home-assistant,home-assistant/home-assistant,nkgilley/home-assistant,rohitranjan1991/home-assistant,mezz64/home-assistant,nkgilley/home-assistant,toddeye/home-assistant