AMP error:
Error with your SQL query. Syntax error (missing operator) in query expression 'case_studies.deleteFake = 0 AND case_studies.arhiva = 0 AND primjena = AND ((publish_from <= 20190915 OR publish_from IS NULL OR publish_from = 0) AND (publish_to >= 20190915 OR publish_to IS NULL OR publish_to = 0))'.

Query:
SELECT * FROM case_studies WHERE case_studies.deleteFake = 0 AND case_studies.arhiva = 0 AND primjena = AND ((publish_from <= 20190915 OR publish_from IS NULL OR publish_from = 0) AND (publish_to >= 20190915 OR publish_to IS NULL OR publish_to = 0)) ORDER BY case_studies.rbr ASC;

Class name: ampDB_Active_record, Function: query()
Requested URL: /index.asp