Error:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'to='Quadodo' AND read='Unread'' at line 1
Code:
$num_private=mysql_query("SELECT * FROM ".$prefix."private WHERE to='$username' AND read='Unread'") or die(query_error());
Now, I've tried just about everything to get this to work, according to:
http://dev.mysql.com/doc/refman/5.0/en/selecting-rows.html
It should work fine. Any idea why it isn't?