Severity: Notice
Message: Undefined offset: 0
Filename: controllers/Agency.php
Line Number: 176
Backtrace:
File: /home/www/cubatechtravel.com/application/controllers/Agency.php
Line: 176
Function: _error_handler
File: /home/www/cubatechtravel.com/application/controllers/Agency.php
Line: 50
Function: details
File: /home/www/cubatechtravel.com/index.php
Line: 292
Function: require_once
Severity: Notice
Message: Trying to get property 'pk_agency' of non-object
Filename: controllers/Agency.php
Line Number: 177
Backtrace:
File: /home/www/cubatechtravel.com/application/controllers/Agency.php
Line: 177
Function: _error_handler
File: /home/www/cubatechtravel.com/application/controllers/Agency.php
Line: 50
Function: details
File: /home/www/cubatechtravel.com/index.php
Line: 292
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 ') AS count, SUM(rating) AS total_rating FROM `all_reviews` WHERE `enabled` = 'Ye' at line 1
SELECT (SELECT count(*) FROM all_reviews WHERE section = 'Agency' AND fk_language = 'en' AND fk = ) AS count, SUM(rating) AS total_rating FROM `all_reviews` WHERE `enabled` = 'Yes' AND `section` = 'Agency' AND `fk_language` = 'en' AND `fk` IS NULL
Filename: models/Reviews_model.php
Line Number: 38