Something is wrong in your syntax obok 'AND termin >= '2020-06-03' ORDER BY termin ASC' w linii 1