A PHP Error was encountered

Severity: Notice

Message: Undefined index: category_id

Filename: models/records_model.php

Line Number: 609

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 413

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 activation_date <= '2017-11-22' AND expiry_date >= '2017-11-22' GROUP BY' at line 8

SELECT DISTINCT freebies.id, freebies.title, freebies.title_url, freebies.description, freebies.image_name FROM freebies, categories_records WHERE freebies.id = categories_records.record_id AND freebies.enabled = 2 AND freebies.type = 1 AND categories_records.category_id = AND activation_date <= '2017-11-22' AND expiry_date >= '2017-11-22' GROUP BY freebies.id

Filename: /home/shopfree/public_html/models/records_model.php

Line Number: 615