object(ORM_Iterator)#151 (4) { ["class_name":protected]=> string(13) "Objects_Model" ["primary_key":protected]=> string(2) "id" ["primary_val":protected]=> string(4) "name" ["result":protected]=> object(Kohana_Mysqli_Result)#18 (8) { ["link":protected]=> object(mysqli)#8 (18) { ["affected_rows"]=> int(370) ["client_info"]=> string(14) "mysqlnd 7.4.33" ["client_version"]=> int(70433) ["connect_errno"]=> int(0) ["connect_error"]=> NULL ["errno"]=> int(0) ["error"]=> string(0) "" ["error_list"]=> array(0) { } ["field_count"]=> int(29) ["host_info"]=> string(25) "Localhost via UNIX socket" ["info"]=> NULL ["insert_id"]=> int(0) ["server_info"]=> string(21) "5.5.5-10.3.35-MariaDB" ["server_version"]=> int(100335) ["sqlstate"]=> string(5) "00000" ["protocol_version"]=> int(10) ["thread_id"]=> int(2819947) ["warning_count"]=> int(53) } ["fetch_type":protected]=> string(12) "fetch_object" ["return_type":protected]=> string(8) "stdClass" ["result":protected]=> object(mysqli_result)#148 (5) { ["current_field"]=> int(0) ["field_count"]=> int(29) ["lengths"]=> NULL ["num_rows"]=> int(370) ["type"]=> int(0) } ["insert_id":protected]=> NULL ["sql":protected]=> string(1662) "SELECT ncms_objects.id, ncms_objects.complex_id, ncms_objects.rooms, ncms_objects.max_people, ncms_objects.status_new, ncms_objects.disabled_friendly, ncms_objects.publish, ncms_objects.longitude, ncms_objects.latitude, ncms_objects.publish, ncms_objects.image, ncms_objects.promotion, ncms_objects.promotion_max_percent as percent, ncms_objects.promotion3plus1, ncms_objects.promotion4plus1, ncms_objects.last_minute, ncms_objects.meter_price, ncms_objects.usable_area, ncms_objects.min_price as list_price_from, (SELECT name FROM ncms_objects_complexes WHERE id = ncms_objects.complex_id LIMIT 1) as complex_name, (SELECT COUNT(id) FROM ncms_objects_reservations WHERE object_id = ncms_objects.id AND ncms_objects_reservations.added_date >= (NOW() - INTERVAL 2 DAY)) AS lastReservations48h, (SELECT COUNT(id) FROM ncms_objects_reservations WHERE object_id = ncms_objects.id AND ncms_objects_reservations.added_date >= (NOW() - INTERVAL 7 DAY)) AS lastReservations7d, ncms_objects.name, ncms_objects.quick_description, ncms_objects.surface, ncms_objects.localization, 0 as price,1 as hasSeason, distanceInMeters(IF(latitude = '', NULL, latitude), IF(longitude = '', NULL, longitude), 49.294702, 19.952232) distance_val FROM (`ncms_objects`) WHERE `publish` = 1 ORDER BY `priority` DESC, `position` ASC, RAND()" ["current_row":protected]=> int(0) ["total_rows":protected]=> int(370) } }