select * from indexation_list where id = "2" 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", "1500582528", "0", "0", "1500582528", "2") SELECT action FROM indexation_control WHERE id = "54" and status="1" LIMIT 1 select count(id) from proxy_list where status = "1" and `key` = "cian.ru" UPDATE indexation_control SET action = '2', last_action_ad = '1500582528', type_pause = '2' WHERE id = '54' and status='1' and action <> 1 LIMIT 1 SELECT action FROM indexation_control WHERE id = "54" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "54" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "54" and status="1" LIMIT 1 select count(id) from proxy_list where status = "1" and `key` = "cian.ru" Error 2006 UPDATE indexation_control SET action = '2', last_action_ad = '1500582588', type_pause = '2' WHERE id = '54' and status='1' and action <> 1 LIMIT 1 SELECT action FROM indexation_control WHERE id = "54" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "54" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "54" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "54" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "54" and status="1" LIMIT 1 SELECT action FROM indexation_control WHERE id = "54" and status="1" LIMIT 1 UPDATE indexation_control SET count_cycles = count_cycles + 1 WHERE id = '54' LIMIT 1 UPDATE indexation_control SET status = '0', last_action_ad = '1500582738' WHERE id = '54' and status='1' LIMIT 1