Severity: Notice
Message: Trying to access array offset on value of type null
Filename: controllers/Packages.php
Line Number: 38
Backtrace:
File: /home/sajjadas/public_html/application/controllers/Packages.php
Line: 38
Function: _error_handler
File: /home/sajjadas/public_html/index.php
Line: 315
Function: require_once
Severity: Notice
Message: Trying to access array offset on value of type null
Filename: controllers/Packages.php
Line Number: 39
Backtrace:
File: /home/sajjadas/public_html/application/controllers/Packages.php
Line: 39
Function: _error_handler
File: /home/sajjadas/public_html/index.php
Line: 315
Function: require_once
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 'GROUP BY t1.resort_id ORDER BY t1.id DESC' at line 13
SELECT t1.id, t1.name, t1.content, t2.name as resort_name, t2.stars, t2.photo as resort_photo, t2.address as resort_address FROM tbl_packages t1 JOIN tbl_resorts t2 ON t1.resort_id = t2.id where t1.resort_id != GROUP BY t1.resort_id ORDER BY t1.id DESC
Filename: models/Model_common.php
Line Number: 91