The MySql function is COUNT(field_name)
and there must not be any space between COUNT
and (*)
, So Remove the extra space between COUNT
and (*)
$content_status_sql = "SELECT COUNT(*) as count FROM AT_vbc_content_status WHERE member_id= '".$_SESSION['member_id']."'";