Se io agiungo questo qui: or die(mysql_error());

Codice PHP:
$db=mysql_connect($db_host,$db_login,$db_pass); 
$sql="select * from basedati WHERE ";

$risultato mysql_query($sql)or die(mysql_error());
$num_record mysql_num_rows($risultato); 
Allora mi da questo errore:
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 '' at line 1

Non riesco ha capire che tipo di errore e questo...
Mi poi aiutare ah capire per piacere ???
Grazie...