in:
[select `sale_specials_condition`, `sale_deduction_value`, `sale_deduction_type`, `sale_coduri_produse` from salemaker_sales where `sale_coduri_produse` LIKE '%dv0367%' AND sale_status = '1' and (sale_date_start <= now() or sale_date_start = '0001-01-01') and (sale_date_end >= now() or sale_date_end = '0001-01-01') and (sale_pricerange_from <= '99.0000' or sale_pricerange_from = '0') and (sale_pricerange_to >= '99.0000' or sale_pricerange_to = '0')]

in:
[select count(*) as total from sessions where sesskey = 'bgd0svlgbv72fubo2erck6uet3']