1064: 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 'AND agenda_status = 2
ORDER BY agenda_startdate ASC' at line 8 SELECT agenda_key,
agenda_id,
agenda_title
FROM agenda
WHERE agenda_startdate >= NOW()
AND agenda_startdate > ''
AND agenda_id !=
AND agenda_status = 2
ORDER BY agenda_startdate ASC