A PHP Error was encountered

Severity: Notice

Message: Undefined variable: search_type

Filename: controllers/Home.php

Line Number: 135

Backtrace:

File: /home/tatildesin/public_html/application/modules/home/controllers/Home.php
Line: 135
Function: _error_handler

File: /home/tatildesin/public_html/index.php
Line: 326
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: search_id

Filename: controllers/Home.php

Line Number: 136

Backtrace:

File: /home/tatildesin/public_html/application/modules/home/controllers/Home.php
Line: 136
Function: _error_handler

File: /home/tatildesin/public_html/index.php
Line: 326
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/tatildesin/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/tatildesin/public_html/application/models/Hotel.php
Line: 153
Function: get

File: /home/tatildesin/public_html/application/modules/hotels/controllers/Hotels.php
Line: 59
Function: search_hotel

File: /home/tatildesin/public_html/application/modules/home/controllers/Home.php
Line: 148
Function: search_result

File: /home/tatildesin/public_html/index.php
Line: 326
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-999, 999' at line 8

SELECT `hotels_translation`.`name`, `hotels_translation`.`seo`, `hotels`.`hotel_id`, `hotels`.`city`, `hotels`.`town`, `hotels`.`district`, `hotels`.`coordinates`, `hotels`.`logo`, `hotels`.`showcase_photo`, `hotels`.`virtual_number`, `hotels_hotel_promotion_prices`.`normal_price`, `hotels_hotel_promotion_prices`.`discount_percent`, `hotels_hotel_promotion_prices`.`discounted_price`, `hotels_hotel_promotion_prices`.`concept_name`, `hotels_hotel_promotion_prices`.`child_discount`, `hotels_hotel_promotion_prices`.`currency`, `hotels`.`average_score` FROM `hotels` JOIN `hotels_translation` ON `hotels_translation`.`hotel_id`=`hotels`.`hotel_id` and `hotels_translation`.`lang`='tr' JOIN `hotels_hotel_promotion_prices` ON `hotels_hotel_promotion_prices`.`hotel_id`=`hotels`.`hotel_id` and `hotels_hotel_promotion_prices`.`market_id`='1' WHERE `hotels`.`status` = 1 GROUP BY `hotels`.`hotel_id` ORDER BY `hotels_hotel_promotion_prices`.`has_price` DESC, `hotels`.`sort` ASC LIMIT -999, 999

Filename: models/Hotel.php

Line Number: 153