如何从同一个数据库连接2个表?

I made a mini system to upload photos as profile and cover, but when I put the two includes 1 if it works and the other does not work when putting the other include. If anyone knows help me please

the 2 are from the same base but different tables, what I want is to connect the 2 tables so that they work without any error

I am new at this

====table 1==

include ("conexion.php");
$ sql = "SELECT * FROM` daniel_banner` ";
$ res = mysqli_query ($ cn, $ sql);
?>

====table 2==

include ("conexion.php");
$ sql = "SELECT * FROM` daniel_profile` ";
$ res = mysqli_query ($ cn, $ sql);
?>

</div>