I am trying to find a way to get a value from the IN clause in my query. The column I am looking for is "viewURL" in the table "contentAvailability".
$availableProvidersSQL = mysql_query("SELECT * FROM contentProviders 
                WHERE 
                code IN (SELECT providerCode FROM contentAvailability WHERE contentGuid = '".($row['guid'])."')
                ORDER BY firendlyName") or die(mysql_error());
                while($availableProvidersRow = mysql_fetch_array($availableProvidersSQL)) {
                        echo '<div class="col-lg-12 col-md-12 col-sm-6 col-xs-6" style="padding-bottom:7px;">
                        <figure>
                        <a href="#"><img src="'.$baseURL.'images/providers/'.$availableProvidersRow['code'].'/Logo.jpg" class="providerLink"></a><br />
                        </figure>
                        </div>';
                }
Any help would be greatly appreciated
 
     
     
     
    