A PHP Error was encountered

Severity: Notice

Message: Undefined variable: sql

Filename: models/Main_model.php

Line Number: 499

Backtrace:

File: /homepages/21/d656827512/htdocs/application/models/Main_model.php
Line: 499
Function: _error_handler

File: /homepages/21/d656827512/htdocs/application/controllers/Welcome.php
Line: 274
Function: get_food_by_id

File: /homepages/21/d656827512/htdocs/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: mysqli::query(): Empty query

Filename: mysqli/mysqli_driver.php

Line Number: 305

Backtrace:

File: /homepages/21/d656827512/htdocs/application/models/Main_model.php
Line: 499
Function: query

File: /homepages/21/d656827512/htdocs/application/controllers/Welcome.php
Line: 274
Function: get_food_by_id

File: /homepages/21/d656827512/htdocs/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /homepages/21/d656827512/htdocs/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 568

Backtrace:

File: /homepages/21/d656827512/htdocs/application/models/Main_model.php
Line: 499
Function: query

File: /homepages/21/d656827512/htdocs/application/controllers/Welcome.php
Line: 274
Function: get_food_by_id

File: /homepages/21/d656827512/htdocs/index.php
Line: 292
Function: require_once

Database Error

A Database Error Occurred

Error Number: 0

Filename: models/Main_model.php

Line Number: 499