Something is wrong in your syntax obok 'AND termin >= '2022-12-04' ORDER BY termin ASC' w linii 1