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 'safeguarding form 2016.xls' at line 1Query is: SELECT * FROM calendar WHERE calendarShortURL = 'docs' AND calendarID = EMA safeguarding form 2016.xls