A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/artists.php

Line Number: 59

Database Error

An Error Was Encountered

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 videos.url, media.filename, media.title as item_title from videos, media where videos.thumbnail = media.id and videos.artist_id=