I’m trying to display results for that match a specific timeframe – which works fine. However, I wanted to add a clause that would say that the results shown must be either party_type 1 or 2.
So I did this
WHERE start_datetime >= '$DATE_START_SELECTED'
AND end_datetime < '$DATE_END_SELECTED'
AND PARTY_TYPE='1'
OR PARTY_TYPE='2'
GROUP BY events.ENTRANCE_PRICE
But now it’s showing some additional events from yesterday… What’s interesting though, is that it’s not showing any events that are further back.
This should do the trick
Slightly cleaner version of whole thing would be
You might also want to check out here to learn more about using Multiple WHERE conditions.