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