select * from indexation_server where `id` = "2" limit 1 SELECT `id` FROM `indexation_control` WHERE `type` = "1" and `status` = "1" and `list_id` = "2" LIMIT 1 INSERT INTO `indexation_control` (`type`, `list_id`, `server`, `action`, `status`, `start_time`, `last_action_ad`) VALUES ("1", "2", "index-ad","0", "1", "1500653915", "1500653915") select * from indexation_server where `id` = "2" limit 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653915 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653915 - 15)) and attempts < "1" and addition_time >= 1500653915 - 86400 and last_attempt <= 1500653915 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653915", status = "2", stream_id = "67", number_select = "0" WHERE `id` IN(56427,56426,56425,56424,56423,56422,56421,56420,56419,56418,56417,56416,56415,56414,56413,56412,56411,56410,56409,56408,56407,56406,56405,56404,56403) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653915' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653916 - 15 and stream_id = "67" SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653922 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653922 - 15)) and attempts < "1" and addition_time >= 1500653922 - 86400 and last_attempt <= 1500653922 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653922", status = "2", stream_id = "67", number_select = "1" WHERE `id` IN(56402,56401,56400,56399,56398,56397,56396,56395,56394,56393,56392,56391,56390,56389,56388,56387,56386,56385,56384,56383,56382,56381,56380,56379,56378) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653922' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653928 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653928 - 15)) and attempts < "1" and addition_time >= 1500653928 - 86400 and last_attempt <= 1500653928 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653928", status = "2", stream_id = "67", number_select = "2" WHERE `id` IN(56377,56376,56375,56374,56373,56372,56371,56370,56369,56368,56367,56366,56365,56364,56363,56362,56361,56360,56359,56358,56357,56356,56355,56354,56353) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653928' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653934 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653934 - 15)) and attempts < "1" and addition_time >= 1500653934 - 86400 and last_attempt <= 1500653934 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653934", status = "2", stream_id = "67", number_select = "3" WHERE `id` IN(56352,56351,56350,56349,56348,56347,56346,56345,56344,56343,56342,56341,56340,56339,56338,56337,56336,56335,56334,56333,56332,56331,56330,56329,56328) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653934' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653940 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653940 - 15)) and attempts < "1" and addition_time >= 1500653940 - 86400 and last_attempt <= 1500653940 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653940", status = "2", stream_id = "67", number_select = "4" WHERE `id` IN(56327,56326,56325,56324,56323,56322,56321,56320,56319,56318,56317,56316,56315,56314,56313,56312,56311,56310,56309,56308,56307,56306,56305,56304,56303) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653940' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653946 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653946 - 15)) and attempts < "1" and addition_time >= 1500653946 - 86400 and last_attempt <= 1500653946 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653946", status = "2", stream_id = "67", number_select = "5" WHERE `id` IN(56302,56301,56300,56299,56298,56297,56296,56295,56294,56293,56292,56291,56290,56289,56288,56287,56286,56285,56284,56283,56282,56281,56280,56279,56278) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653946' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653952 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653952 - 15)) and attempts < "1" and addition_time >= 1500653952 - 86400 and last_attempt <= 1500653952 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653952", status = "2", stream_id = "67", number_select = "6" WHERE `id` IN(56277,56276,56275,56274,56273,56272,56271,56270,56269,56268,56267,56266,56265,56264,56263,56262,56261,56260,56259,56258,56257,56256,56255,56254,56253) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653952' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653958 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653958 - 15)) and attempts < "1" and addition_time >= 1500653958 - 86400 and last_attempt <= 1500653958 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653958", status = "2", stream_id = "67", number_select = "7" WHERE `id` IN(56252,56251,56250,56249,56248,56247,56246,56245,56244,56243,56242,56241,56240,56239,56238,56237,56236,56235,56234,56233,56232,56231,56230,56229,56228) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653958' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653964 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653964 - 15)) and attempts < "1" and addition_time >= 1500653964 - 86400 and last_attempt <= 1500653964 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653964", status = "2", stream_id = "67", number_select = "8" WHERE `id` IN(56227,56226,56225,56224,56223,56222,56221,56220,56219,56218,56217,56216,56215,56214,56213,56212,56211,56210,56209,56208,56207,56206,56205,56204,56203) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653964' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653970 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653970 - 15)) and attempts < "1" and addition_time >= 1500653970 - 86400 and last_attempt <= 1500653970 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653970", status = "2", stream_id = "67", number_select = "9" WHERE `id` IN(56202,56201,56200,56199,56198,56197,56196,56195,56194,56193,56192,56191,56190,56189,56188,56187,56186,56185,56184,56183,56182,56181,56180,56179,56178) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653970' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653976 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653976 - 15)) and attempts < "1" and addition_time >= 1500653976 - 86400 and last_attempt <= 1500653976 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653976", status = "2", stream_id = "67", number_select = "10" WHERE `id` IN(56177,56176,56175,56174,56173,56172,56171,56170,56169,56168,56167,56166,56165,56164,56163,56162,56161,56160,56159,56158,56157,56156,56155,56154,56153) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653976' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653982 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653982 - 15)) and attempts < "1" and addition_time >= 1500653982 - 86400 and last_attempt <= 1500653982 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653982", status = "2", stream_id = "67", number_select = "11" WHERE `id` IN(56152,56151,56150,56149,56148,56147,56146,56145,56144,56143,56142,56141,56140,56139,56138,56137,56136,56135,56134,56133,56132,56131,56130,56129,56128) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653982' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653988 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653988 - 15)) and attempts < "1" and addition_time >= 1500653988 - 86400 and last_attempt <= 1500653988 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653988", status = "2", stream_id = "67", number_select = "12" WHERE `id` IN(56127,56126,56125,56124,56123,56122,56121,56120,56119,56118,56117,56116,56115,56114,56113,56112,56111,56110,56109,56108,56107,56106,56105,56104,56103) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653988' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500653994 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500653994 - 15)) and attempts < "1" and addition_time >= 1500653994 - 86400 and last_attempt <= 1500653994 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500653994", status = "2", stream_id = "67", number_select = "13" WHERE `id` IN(56102,56101,56100,56099,56098,56097,56096,56095,56094,56093,56092,56091,56090,56089,56088,56087,56086,56085,56084,56083,56082,56081,56080,56079,56078) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500653994' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654000 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654000 - 15)) and attempts < "1" and addition_time >= 1500654000 - 86400 and last_attempt <= 1500654000 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654000", status = "2", stream_id = "67", number_select = "14" WHERE `id` IN(56077,56076,56075,56074,56073,56072,56071,56070,56069,56068,56067,56066,56065,56064,56063,56062,56061,56060,56059,56058,56057,56056,56055,56054,56053) UPDATE `indexation_control` SET `img_check` = img_check + 25, `last_action_ad` = '1500654000' WHERE id = '67' LIMIT 1 SELECT action FROM indexation_control WHERE id = "67" and status = "1" LIMIT 1 SHOW PROCESSLIST SHOW PROCESSLIST select count(id) from img_download where status = "2" and last_attempt > 1500654006 - 15 and stream_id = "67" SELECT `id`, `url`, `ad`, `source_name`, `crop_img`, `height_img`, `name` FROM `img_download` where (status = "0" or (status = "2" and last_attempt < 1500654006 - 15)) and attempts < "1" and addition_time >= 1500654006 - 86400 and last_attempt <= 1500654006 - 5 order by addition_time DESC, id DESC limit 25 UPDATE img_download SET attempts = attempts + 1, last_attempt = "1500654006", status = "2", stream_id = "67", number_select = "15" WHERE `id` IN(56052,56051,56050,56049,56048,56047,56046,56045,56044,56043,56042,56041,56040,56039,56038,56037,56036,56035,56034,56033,56032,56031,56030,56029,56028)