Jamie, need more details.
whenever you report a problem, the following information is needed:
What are the steps to reproduce the problem?
what is supposed to happen?
what is happening?
"it's not working" doesn't provide those details.
in this case, i would also need to also know what the values of these bindings is:
<?php echo $row_SponsorsFooter['SponsorLive']; ?>
<?php echo $row_SponsorsFooter['SponsorCategoryID']; ?>
<?php echo $row_Sponsors['SponsorCategoryID']; ?>