ERROR: FilterType 'loc' is niet gedefinieerd

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' art_Content.nieuw, IF (art_Stock.prijsvoor < art_Stock.prijsvan, 1, 0 ) AS s...' at line 2