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 = '4'
)and p2c.categories_id = '20'
[TEP STOP]
2006 - MySQL server has gone away
select count(*) as total from sessions where sesskey = 'vcr5he724d7ef6kb7c24c1o457'