Your request should be passing the category ID, start language ID, and end language ID.  You are doing 4 database queries when you should be doing only 1.