I'm thinking you would want to do something like:
$name = $db->where('type',PT_Secure($_POST['category_id']))->where('lang_key',PT_Secure($_POST['sub_category_id']))->getValue(T_LANGS,'name');
However, I am not sure if that is correct given how you are querying the database since your code...