can anyone help me fix this error im gettin, its for unread messages on wapdesire v2,instead its tellin ppl how many they got and not the user of the profile there on
$allinboxes=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM inbox WHERE ((toid='".getuid_sid($sid)."' AND fwd='0') or (fwd='".getuid_sid($sid)."'))"));
$readinboxes=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM inbox WHERE ((toid='".getuid_sid($sid)."' AND fwd='0') or (fwd='".getuid_sid($sid)."')) AND unread='1'"));
$main.="<b>New Msgs:</b> $readinboxes[0]<br/>";
all help will be gr8