I recently had to change an SQL query to query multiple tables and started specifying the table names with the column names.
$results = $db->query('SELECT categories.name, channels.description, channels.name FROM categories JOIN channels ON categories.id = channels.category ORDER BY RANDOM() LIMIT 4');
However now I have a problem that the rest of the code doesn't work even though I updated it to use the table names with the column names.
<h3><?php echo $row['channels.name']; ?></h3>
How do I specify table name with column names in this way? The SQL query itself is fine but I don't understand how to echo
the results?