I would guess the biggest problem is that SQL has no idea how you want your and's and or's broken up. You need to add some parentheses so that it knows how to group stuff. Also, you should use '=' instead of 'like' if you are not using any wildcards.
Your query could be rewritten like:
$query = "SELECT * FROM $usertable WHERE (price > '$minPrice' AND price < '$maxPrice') and (quanBed LIKE '%$quanBed%' OR quanBath LIKE '%$quanBath%' AND propertyid = '$propertyid' AND brokerid = '$brokerid') ORDER BY price ASC, homeid ASC";
Of course, I have no idea if that is what your logic should be. Impossible for me to tell.
Good luck.