A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Home.php

Line Number: 87

Backtrace:

File: /home/customer/www/onlineskolemad.dk/public_html/application/controllers/Home.php
Line: 87
Function: _error_handler

File: /home/customer/www/onlineskolemad.dk/public_html/index.php
Line: 598
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Home.php

Line Number: 87

Backtrace:

File: /home/customer/www/onlineskolemad.dk/public_html/application/controllers/Home.php
Line: 87
Function: _error_handler

File: /home/customer/www/onlineskolemad.dk/public_html/index.php
Line: 598
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/customer/www/onlineskolemad.dk/public_html/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 568

Backtrace:

File: /home/customer/www/onlineskolemad.dk/public_html/application/models/General_model.php
Line: 41
Function: get_where

File: /home/customer/www/onlineskolemad.dk/public_html/application/controllers/Home.php
Line: 87
Function: view_all_data_where

File: /home/customer/www/onlineskolemad.dk/public_html/index.php
Line: 598
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 `ProductID` != AND `Active` = 1 ORDER BY `ProductID` DESC' at line 3

SELECT * FROM `tbh_products` WHERE `DepartmentID` = AND `ProductID` != AND `Active` = 1 ORDER BY `ProductID` DESC

Filename: models/General_model.php

Line Number: 41