Correct find_accommodation.pl SQL query