My Query performance is very very bad. It is taking around.
SELECT t1.from_state_id fromStateId,GROUP_CONCAT(t3.state_name) fromState
FROM tbl_vendor_workstations as t1
Left JOIN tbl_states as t3 ON find_in_set(t3.id,t1.from_state_id)
where t1.vendor_id=1717 and enterprise_user_id=703
group by t1.id
issue is in that function find_in_set(t3.id,t1.from_state_id)
Column t1.from_state_id: 1,2,3,4,5,...,45147 it contains 50,000 separated by comma