Unknown column 'activitySheet.pdf' in 'where clause'Query is: SELECT * FROM calendar WHERE calendarShortURL = 'activity' AND calendarID = activitySheet.pdf