MySQL server has gone away(Checking for product pagename) sql: SELECT id FROM products WHERE pagename = 'u-traq-gps-tracking-advanced-service-plan-annual-at-a-monthly-fee-of-30-month' AND hidden = 0 LIMIT 1