A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/teachers.php

Line Number: 594

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/teachers.php

Line Number: 600

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/teachers.php

Line Number: 619

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/teachers.php

Line Number: 620

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/teachers.php

Line Number: 621

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/teachers.php

Line Number: 625

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 436

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 users.Is_teacher > 0 order by users.Is_vip_account DESC limit 0, 10' at line 7

select *, (SELECT country_code FROM countries WHERE countries.Id=users.Country_of_residense_id) AS Country_code, (SELECT country_name_en FROM countries WHERE countries.Id=users.Country_of_residense_id) AS Country_of_residense_Name_en, (SELECT country_name_ar FROM countries WHERE countries.Id=users.Country_of_residense_id) AS Country_of_residense_Name_ar, (SELECT Name_ar FROM cities WHERE cities.Id=users.City_of_residense_id) AS City_of_residense_Name_ar, (SELECT Name_en FROM cities WHERE cities.Id=users.City_of_residense_id) AS City_of_residense_Name_en from users where users.id > 0 and users.Id in (select User_id from users_categories where users_categories.User_id = users.Id and users_categories.Category_id = ) and users.Is_teacher > 0 order by users.Is_vip_account DESC limit 0, 10

Filename: /home/teacherprivate/public_html/models/teachers_model.php

Line Number: 222