First, I am going to assume you are using
PHP. If so remember to include mysql_real_escape_string around your variables in the query. If any of these variables have a sigle or double quote in them, your query may be causing an error.
Code:
$query = "select * from sothebys where areas='".mysql_real_escape_string($area)."' and (pool like '%".mysql_real_escape_string($general)."%' or security like '%".mysql_real_escape_string($general)."%' or storey like '%".mysql_real_escape_string($general)."%') and (price between '".mysql_real_escape_string($price_from)."' and '".mysql_real_escape_string($price_to."')" or die(mysql_error());
Again, assuming you are using
PHP, for testing purposes add or die(mysql_errror()) at the end of your query will allow you to determine if your query has errors in it. Be sure to remove this before you move the script into production, since it can be used to compromise your site.