If you coded the system yourself,
check the line mentioned (529) and make sure it has a die statement at the end of it.
liek this:
$result = mysql_num_rows('somedata') or die(MYSQL_ERROR());
Sometimes PHP does that. I'm not sure why. Just something I've known to fix my issues with num_rows.