SELECT  * FROM opg_call_list  WHERE   segment = 'красный' AND  row_id > 0 AND  actual IS TRUE AND region IN ('3') ORDER BY row_id LIMIT 1


SELECT  * FROM opg_call_list  WHERE   segment = 'красный' AND  row_id > 0 AND  actual IS TRUE AND region IN ('3','4','5','6','7','8','9','10','11','12') ORDER BY row_id LIMIT 1


красный желтый синий


SELECT  * FROM opg_call_list  WHERE   segment = 'желтый' AND  row_id > 0 AND  actual IS TRUE AND region IN ('3','4') ORDER BY row_id LIMIT 1


SELECT  * FROM opg_call_list  WHERE   segment = 'желтый' AND  row_id > 1927 AND  actual IS TRUE AND region IN ('3','4') ORDER BY row_id LIMIT 1


SELECT  * FROM opg_call_list  WHERE   segment = 'желтый' AND  row_id > 1930 AND  actual IS TRUE AND region IN ('3','4') ORDER BY row_id LIMIT 1


SELECT  * FROM opg_call_list  WHERE   segment = 'желтый' AND  row_id > 1932 AND  actual IS TRUE AND region IN ('3','4') ORDER BY row_id LIMIT 1


SELECT  * FROM opg_call_list  WHERE   segment = 'желтый' AND  row_id > 0 AND  actual IS TRUE AND region IN ('3') ORDER BY row_id LIMIT 1


SELECT  * FROM opg_call_list  WHERE   segment = 'синий' AND  row_id > 0 AND  actual IS TRUE AND region IN ('3') ORDER BY row_id LIMIT 1


SELECT  * FROM opg_call_list  WHERE   segment = 'желтый' AND  row_id > 1927 AND  actual IS TRUE AND region IN ('3') ORDER BY row_id LIMIT 1


SELECT  * FROM opg_call_list  WHERE   segment = 'синий' AND  row_id > 1931 AND  actual IS TRUE AND region IN ('3') ORDER BY row_id LIMIT 1