A PHP Error was encountered

Severity: Notice

Message: Undefined index: cat_id

Filename: controllers/page.php

Line Number: 274

A PHP Error was encountered

Severity: Notice

Message: Undefined index: cat_name

Filename: controllers/page.php

Line Number: 275

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/mtoys/public_html/system/libraries/Exceptions.php:166)

Filename: codeigniter/Common.php

Line Number: 356

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 active='Yes' AND lang_id=1' at line 1

SELECT * FROM courses WHERE cat_id= AND active='Yes' AND lang_id=1