select p.products_id
from
products p
inner join products_attributes pa on p.products_id=pa.products_id
inner join products_to_categories p2c on p.products_id=p2c.products_id
where
p.products_status = 1
and
( pa.options_id = '22'
)and p2c.categories_id = '2038'
[TEP STOP]
2006 - MySQL server has gone away
select count(*) as total from sessions where sesskey = 'prb1v2lv6n09a0ugrkeq1c9i97'