Hi,
No, as I said there is NO Way that the Query can be written in a single Query since what we SELECT in the 2nd Query depends on how many results where returned via the 1st Query.
And thanks for the heads up that: “mysql_query and related functions need to be replaced with mysqli or PDO to continue working in PHP 7”