But he turned, and said unto Peter, Get thee behind me, Satan: thou art an offence unto me: for thou savourest not the things that be of God, but those that be of men. ~Matthew 16:23
Query Fail: select * from banner_square_ads where display='On' and location='R' and ((type='D' and '2024-04-24' <= end_date) or (type='V' and views < max_views))