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 'ORDER BY sortID ASC LIMIT 1' at line 4
Array
(
    [0] => Error Number: 1064
    [1] => 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 'ORDER BY sortID ASC
	    LIMIT 1' at line 4
    [2] => 
	    SELECT I.*, CONCAT("https://reserve-tracker.com/app/beavercreekreserve/images/uploads/", I.filename) AS filepath
	    FROM event_images I
	    WHERE eventID = 
	    ORDER BY sortID ASC
	    LIMIT 1
	
)