Error: MySQL server has gone away
Error No: 2006
SELECT COUNT(*) AS total FROM vinatech_category c LEFT JOIN vinatech_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '123' AND c2s.store_id = '0' AND c.status = '1' AND c.sort_order <> '-1'