in:
[select specials_id, products_id
from specials
where status = '0'
and (((specials_date_available <= 20241123 and specials_date_available != '0001-01-01') and (expires_date > 20241123))
or ((specials_date_available <= 20241123 and specials_date_available != '0001-01-01') and (expires_date = '0001-01-01'))
or (specials_date_available = '0001-01-01' and expires_date > 20241123))
]
in:
[select count(*) as total
from sessions
where sesskey = 'kljr32ed3qtejrpvkcft80hgt1']