A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/sports_programs.php

Line Number: 68

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/content/56/14017156/html/system/codeigniter/core/Exceptions.php:183)

Filename: core/Common.php

Line Number: 489

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 prog.status = 'live' and div.parent_prog_id = prog.id and div.status = 'live' at line 3

SELECT DISTINCT `prog`.`id` as `prog_id`, `prog`.`web_display_name` FROM (`default_sp_programs` `prog`, `default_sp_divisions` `div`, `default_sp_results` `res`) WHERE `parent_prog_cat_id` = and prog.status = 'live' and div.parent_prog_id = prog.id and div.status = 'live' and res.division_id = div.id and res.status = 'Live' ORDER BY `prog`.`web_display_name`