ERROR :

Unknown column 'events.html' in 'where clause'

your SQL Statement was :

SELECT * FROM `events`where id=events.html