Fixed SQL error while loading ships near position
Added range for weapon use