How can I reformulate this two queries in one single query on MySQL?
SELECT * FROM tvnetwork
//this query gives me a list of TV networks
But networks usually change names and logos, so for each of the retrieved TV networks:
SELECT name, logo FROM tvnetworkinfo
WHERE id = $tvnetwork.id
AND date_since < NOW()
ORDER BY date_since desc LIMIT 1
//this one gives me the most recent logo and name for the network
I intentionally leave out the NEXT name/logo change. E.g. I want "NatGeo" instead of the old "National Geographic", but I also want "SciFi" instead of the not yet implemented "SyFy".
I'd like to retrieve everything in a single query. ¿Is there any way to do that?