Windu ERROR

SQLSTATE[42000]: Syntax error or access violation: 1064 Something is wrong in your syntax obok ') AND type=1 and (date is null or date <= '2018-09-20 04:30:11') AND langId = 6' w linii 1