A PHP Error was encountered

Severity: Notice

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

Filename: controllers/Course.php

Line Number: 33

Backtrace:

File: C:\inetpub\vhosts\almihadlearning.com\httpdocs\app\controllers\Course.php
Line: 33
Function: _error_handler

File: C:\inetpub\vhosts\almihadlearning.com\httpdocs\index.php
Line: 315
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 1

select *, c.description,c.image from courses c join universities u on c.uid=u.uid where cid=

Filename: C:/inetpub/vhosts/almihadlearning.com/httpdocs/system/database/DB_driver.php

Line Number: 691