select * from indexation_list where id = "6" limit 1 INSERT INTO `indexation_control` (`type`, `server`, `action`, `status`, `start_time`, `ad_object`, `ad_check`, `last_action_ad`, `list_id`) VALUES ("0", "index-ad", "0", "1", "1500657473", "0", "0", "1500657473", "6") SELECT action FROM indexation_control WHERE id = "79" and status="1" LIMIT 1 select count(id) from proxy_list where status = "1" and `key` = "avito.ru" select id from proxy_list where `status` = "1" and `key` = "avito.ru" order by use_time ASC select id, proxy, auth, date_day, error_count from proxy_list where id = "6" update proxy_list set use_time = "1500657473", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "6" select id, proxy, auth, date_day, error_count from proxy_list where id = "7" update proxy_list set use_time = "1500657473", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "7" select id, proxy, auth, date_day, error_count from proxy_list where id = "8" update proxy_list set use_time = "1500657473", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "8" select id, proxy, auth, date_day, error_count from proxy_list where id = "9" update proxy_list set use_time = "1500657473", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "9" select id, proxy, auth, date_day, error_count from proxy_list where id = "10" update proxy_list set use_time = "1500657473", error_count = error_count + 1, requests_day = requests_day + 1, requests_all = requests_all + 1 where id = "10" UPDATE indexation_control SET action = '2', last_action_ad = '1500657473', type_pause = '1' WHERE id = '79' and status='1' and action <> 1 LIMIT 1 SELECT action FROM indexation_control WHERE id = "79" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "79" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "79" and status="1" LIMIT 1 UPDATE indexation_control SET count_cycles = (count_cycles + 1) WHERE id = '79' LIMIT 1 UPDATE indexation_control SET status = '0', last_action_ad = '1500657533' WHERE id = '79' and status='1' LIMIT 1