A PHP Error was encountered

Severity: Notice

Message: Undefined index: id

Filename: controllers/Courses.php

Line Number: 2283

Backtrace:

File: /home/meirc/public_html/application/controllers/Courses.php
Line: 2283
Function: _error_handler

File: /home/meirc/public_html/application/controllers/Courses.php
Line: 49
Function: getCoursePrintPDFDetails

File: /home/meirc/public_html/index.php
Line: 317
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 568

Backtrace:

File: /home/meirc/public_html/application/models/Course_model.php
Line: 1269
Function: query

File: /home/meirc/public_html/application/controllers/Courses.php
Line: 2283
Function: category_courses_outline

File: /home/meirc/public_html/application/controllers/Courses.php
Line: 49
Function: getCoursePrintPDFDetails

File: /home/meirc/public_html/index.php
Line: 317
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 'ORDER by course_session.date_start,course.uri_segment' at line 11

SELECT course_translated.title,course_session.date_start,course_session.date_end,course_session.lang_id as session_lang,city_translated.title as city , category_translated.title as cat_title ,category.color,course.price,course.new_price, DATEDIFF(course_session.date_end,course_session.date_start)+1 AS num_of_days, course.is_plus,course.certified,course.new_price FROM course_translated,course_session,city_translated,category_translated,course_category,category,course WHERE course.id=course_translated.course_id and course_translated.course_id=course_session.course_id and course_session.city_id=city_translated.city_id and course_translated.course_id=course_category.course_id and course_category.category_id=category_translated.category_id and course_category.category_id=category.id and course_category.category_type=1 and course_translated.lang_id=2 and city_translated.lang_id=2 and course_session.published=1 and category_translated.lang_id=2 and course.published=1 and course_session.date_start >=DATE_ADD(NOW(), INTERVAL +1 WEEK) and category_translated.category_id=29 and course.id!= ORDER by course_session.date_start,course.uri_segment

Filename: models/Course_model.php

Line Number: 1269