2006 - MySQL server has gone away

select p.*, pd.*, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price, p.products_quantity as in_stock, if(s.status, 1, 0) as is_special from orders_products opa, orders_products opb, orders o, products p left join specials s on p.products_id = s.products_id LEFT JOIN products_description pd on p.products_id = pd.products_id where opa.products_id = '1506' and opa.orders_id = opb.orders_id and opb.products_id != '1506' and opb.products_id = p.products_id and opb.orders_id = o.orders_id and p.products_status = '1' and pd.language_id = '1' group by p.products_id order by o.date_purchased desc limit 3

[TEP STOP]

2006 - MySQL server has gone away

select 1 from sessions where sesskey = '072e22c223b7547624355b0d72de71cd'

[TEP STOP]