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