A PHP Error was encountered

Severity: Notice

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

Filename: controllers/match.php

Line Number: 70

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order by startTime desc limit 0,10' at line 1

select * from videoCache where 1=1 and leagueID= order by startTime desc limit 0,10

Filename: /var/www/html/website/sportepoch/models/viewvideo.php

Line Number: 12