Generall "near" means in front of. Two things come to mind... try putitng a space between the table.field and the dates like
table.date > '2002/10/02'
and you can also do this... just before you execute your query do a
die($query);
mysql_query($query) or die(mysql_error());
Where $query is storing the whole sql query, thus pringing the exact syntacx out to the screen... look for proper spacing etc...
If you still can not find anything copy and past it into a MySQL> see if it runs there, or paste it here and Ill take another look
THanks
PHPdev