SELECT *
FROM (`xh_yyyymm` , `xh_pact`
)
WHERE `xh_pact`.`id`
IN ('4df0739a83a2a', '4df07474af18b', '4df074ba0bbd0', '4df074cb8c07d', '4df074e0dbfd4', '4df0753a8665f', '4df0755391a21', '4df075986196f', '4df075b0aaceb', '4df0761c4357e','4df076268c0eb', '4df077066c0e0', '4df0773428f6f', '4df077d748343', '4df078530e782', '4df07903cfe56', '4df07d793dc9f', '4df07dac61283', '4df07e111b694'
)
AND `xh_yyyymm`.`pid`
IN ('4df0739a83a2a', '4df07474af18b', '4df074ba0bbd0', '4df074cb8c07d', '4df074e0dbfd4', '4df0753a8665f', '4df0755391a21', '4df075986196f', '4df075b0aaceb', '4df0761c4357e','4df076268c0eb', '4df077066c0e0', '4df0773428f6f', '4df077d748343', '4df078530e782', '4df07903cfe56', '4df07d793dc9f', '4df07dac61283', '4df07e111b694'
)
AND `xh_yyyymm`.`day` = '2011-06-09'
AND `abolish` =0
AND `status`
IN ( 1, 3 )
ORDER BY `day` , `mid` , `section`
LIMIT 10000