Something is wrong in your syntax obok 'AND potwierdzony='TAK'' w linii 1