A PHP Error was encountered

Severity: Notice

Message: Undefined variable: area

Filename: controllers/FoodController.php

Line Number: 141

Backtrace:

File: /home1/firstvvn/public_html/lucknowitiffin.in/application/controllers/FoodController.php
Line: 141
Function: _error_handler

File: /home1/firstvvn/public_html/lucknowitiffin.in/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: area_name

Filename: controllers/FoodController.php

Line Number: 141

Backtrace:

File: /home1/firstvvn/public_html/lucknowitiffin.in/application/controllers/FoodController.php
Line: 141
Function: _error_handler

File: /home1/firstvvn/public_html/lucknowitiffin.in/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home1/firstvvn/public_html/lucknowitiffin.in/application/models/Ltpartner_model.php
Line: 556
Function: query

File: /home1/firstvvn/public_html/lucknowitiffin.in/application/controllers/FoodController.php
Line: 141
Function: get_areas

File: /home1/firstvvn/public_html/lucknowitiffin.in/index.php
Line: 316
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 'AND c.name='' AND d.city= and l.status = 'Approved' group by d.ltpartner_id' at line 1

SELECT l.id, l.logo as logo,l.name as name, c.name as city, loc.name as locality,l.lunch_time,l.dinner_time,c.name as area FROM delivery_area d left join ltpartners l on d.ltpartner_id=l.id left join cities c on c.id=d.city left join locality loc on d.locality=loc.id where c.id= AND c.name='' AND d.city= and l.status = 'Approved' group by d.ltpartner_id

Filename: models/Ltpartner_model.php

Line Number: 556