SELECT * FROM previous_events WHERE PreviousID = ? OR Permalink = ? AND Live = 1

Unknown column 'PreviousID' in 'where clause'