Is their something wrong with this SQL code?
Because it seems to work on localhost but not on my actual site
PHP:
<?php
$checkBan = mysql_query("SELECT `cms_comment_banned` FROM `users` WHERE `cms_comment_banned` = '1' AND `id` = '".$_SESSION['user']['id']."'");
if (mysql_num_rows($checkBan) == 1)
{
?>
Because it seems to work on localhost but not on my actual site