A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id' of non-object

Filename: controllers/Main.php

Line Number: 992

Backtrace:

File: /home1/takavitu/public_html/test/application/controllers/Main.php
Line: 992
Function: _error_handler

File: /home1/takavitu/public_html/test/index.php
Line: 320
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home1/takavitu/public_html/test/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home1/takavitu/public_html/test/application/controllers/Main.php
Line: 993
Function: query

File: /home1/takavitu/public_html/test/index.php
Line: 320
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 '' at line 5

SELECT distinct t.*,ti.* FROM users as t INNER JOIN tutor_info as ti on ti.tutor_id = t.id INNER JOIN tutors_subjects as ts on ts.tutor_id = t.id INNER JOIN subjects as s on s.id = ts.sub_id INNER JOIN subjects_category as sc on sc.id = s.cat_id where t.active = 1 and t.is_active = 1 and sc.id =

Filename: controllers/Main.php

Line Number: 993