A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Store.php

Line Number: 121

Backtrace:

File: /home/xmdhjoyx/public_html/application/modules/store/controllers/Store.php
Line: 121
Function: _error_handler

File: /home/xmdhjoyx/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/xmdhjoyx/public_html/application/modules/offer/models/Offer_model.php
Line: 207
Function: get

File: /home/xmdhjoyx/public_html/application/modules/store/controllers/Store.php
Line: 121
Function: get_offer_ci

File: /home/xmdhjoyx/public_html/index.php
Line: 315
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 ') GROUP BY `mf`.`offer_id` ORDER BY `mf`.`updated_at` DESC LIMIT 18' at line 11

SELECT *, `mf`.`offer_id` as `main_off_id`, `ctype_colour`.`color_code` as `color_code_btn`, `offer_type`.`color_code` as `offer_color_code` FROM `main_offer` `mf` JOIN `offer_type` ON `offer_type`.`offer_id`=`mf`.`offer_title_type` LEFT JOIN `voucher` ON `voucher`.`offer_id`=`mf`.`offer_id` LEFT JOIN `utm_ofr` ON `utm_ofr`.`offer_id`=`mf`.`offer_id` LEFT JOIN `offer_sms` ON `offer_sms`.`offer_id`=`mf`.`offer_id` LEFT JOIN `direct_sale` ON `direct_sale`.`offer_id`=`mf`.`offer_id` LEFT JOIN `online_deal` ON `online_deal`.`offer_id`=`mf`.`offer_id` LEFT JOIN `ctype_colour` ON `ctype_colour`.`id`=`mf`.`ctype` LEFT JOIN `user_login` ON `user_login`.`loginid`=`mf`.`offer_from` WHERE (`mf`.`offer_from` =) GROUP BY `mf`.`offer_id` ORDER BY `mf`.`updated_at` DESC LIMIT 18

Filename: modules/offer/models/Offer_model.php

Line Number: 207