Exception: Mysql2::Error: Lost connection to MySQL server during query: SELECT `classified_run_orders`.`id` AS t0_r0, `classified_run_orders`.`type` AS t0_r1, `classified_run_orders`.`ad_id` AS t0_r2, `classified_run_orders`.`fee_id` AS t0_r3, `classified_run_orders`.`issue_id` AS t0_r4, `classified_run_orders`.`starts_at` AS t0_r5, `classified_run_orders`.`ends_at` AS t0_r6, `classified_run_orders`.`enabled` AS t0_r7, `classified_run_orders`.`featured` AS t0_r8, `classified_run_orders`.`in_newsletter` AS t0_r9, `classified_run_orders`.`pulled` AS t0_r10, `classified_run_orders`.`created_by` AS t0_r11, `classified_run_orders`.`updated_by` AS t0_r12, `classified_run_orders`.`created_at` AS t0_r13, `classified_run_orders`.`updated_at` AS t0_r14, `classified_run_orders`.`complimentary` AS t0_r15, `classified_ads`.`id` AS t1_r0, `classified_ads`.`category_id` AS t1_r1, `classified_ads`.`job_position_id` AS t1_r2, `classified_ads`.`person_id` AS t1_r3, `classified_ads`.`content` AS t1_r4, `classified_ads`.`logo` AS t1_r5, `classified_ads`.`camera_ready_content` AS t1_r6, `classified_ads`.`status` AS t1_r7, `classified_ads`.`version` AS t1_r8, `classified_ads`.`created_by` AS t1_r9, `classified_ads`.`updated_by` AS t1_r10, `classified_ads`.`created_at` AS t1_r11, `classified_ads`.`updated_at` AS t1_r12, `classified_ads`.`organization_id` AS t1_r13, `classified_ads`.`other_organization_name` AS t1_r14, `classified_ads`.`other_category` AS t1_r15, `classified_ads`.`in_memoriam` AS t1_r16, `classified_ads`.`mortua_person_id` AS t1_r17, `classified_ads`.`mortua_first_name` AS t1_r18, `classified_ads`.`mortua_last_name` AS t1_r19, `classified_ads`.`mortua_photo` AS t1_r20, `classified_ads`.`proofread` AS t1_r21 FROM `classified_run_orders` INNER JOIN `classified_ads` ON `classified_ads`.`id` = `classified_run_orders`.`ad_id` WHERE `classified_run_orders`.`type` IN ('Classifieds::RunOrder::Online') AND (in_memoriam IS NOT TRUE) AND (enabled IS TRUE AND pulled IS NOT TRUE AND (starts_at <= '2017-11-25 09:32:22' AND ends_at >= '2017-11-25 09:32:22')) AND `classified_ads`.`id` = 2424 ORDER BY `classified_run_orders`.`id` ASC LIMIT 1
Exception: Mysql2::Error: Lost connection to MySQL server during query: SELECT `classified_run_orders`.`id` AS t0_r0, `classified_run_orders`.`type` AS t0_r1, `classified_run_orders`.`ad_id` AS t0_r2, `classified_run_orders`.`fee_id` AS t0_r3, `classified_run_orders`.`issue_id` AS t0_r4, `classified_run_orders`.`starts_at` AS t0_r5, `classified_run_orders`.`ends_at` AS t0_r6, `classified_run_orders`.`enabled` AS t0_r7, `classified_run_orders`.`featured` AS t0_r8, `classified_run_orders`.`in_newsletter` AS t0_r9, `classified_run_orders`.`pulled` AS t0_r10, `classified_run_orders`.`created_by` AS t0_r11, `classified_run_orders`.`updated_by` AS t0_r12, `classified_run_orders`.`created_at` AS t0_r13, `classified_run_orders`.`updated_at` AS t0_r14, `classified_run_orders`.`complimentary` AS t0_r15, `classified_ads`.`id` AS t1_r0, `classified_ads`.`category_id` AS t1_r1, `classified_ads`.`job_position_id` AS t1_r2, `classified_ads`.`person_id` AS t1_r3, `classified_ads`.`content` AS t1_r4, `classified_ads`.`logo` AS t1_r5, `classified_ads`.`camera_ready_content` AS t1_r6, `classified_ads`.`status` AS t1_r7, `classified_ads`.`version` AS t1_r8, `classified_ads`.`created_by` AS t1_r9, `classified_ads`.`updated_by` AS t1_r10, `classified_ads`.`created_at` AS t1_r11, `classified_ads`.`updated_at` AS t1_r12, `classified_ads`.`organization_id` AS t1_r13, `classified_ads`.`other_organization_name` AS t1_r14, `classified_ads`.`other_category` AS t1_r15, `classified_ads`.`in_memoriam` AS t1_r16, `classified_ads`.`mortua_person_id` AS t1_r17, `classified_ads`.`mortua_first_name` AS t1_r18, `classified_ads`.`mortua_last_name` AS t1_r19, `classified_ads`.`mortua_photo` AS t1_r20, `classified_ads`.`proofread` AS t1_r21 FROM `classified_run_orders` INNER JOIN `classified_ads` ON `classified_ads`.`id` = `classified_run_orders`.`ad_id` WHERE `classified_run_orders`.`type` IN ('Classifieds::RunOrder::Online') AND (in_memoriam IS NOT TRUE) AND (enabled IS TRUE AND pulled IS NOT TRUE AND (starts_at <= '2017-11-25 09:32:22' AND ends_at >= '2017-11-25 09:32:22')) AND `classified_ads`.`id` = 2424 ORDER BY `classified_run_orders`.`id` ASC LIMIT 1