I am generating the following query
SELECT * FROM Report WHERE submittedOn >= :minDateFilter
AND submittedOn <= :maxDateFilter AND non_issue = 1 AND
non_issue = 0 ORDER BY submitted
However, I'm not getting anything returned (it works fine if I omit: AND non_issue = 1 AND
non_issue = 0
, or omit just one of these, but nothing is being returned when both of these clauses are present.
Ideally I'd like to keep the statement how it is, as it's generated on the fly and I'd like to be able to display both types of report from the same query.
I feel like my syntax might be incorrect, but it's not throwing any errors, any suggestions?