yaḥ śāstrādiṣv anipuṇaḥ
śraddhāvān sa tu madhyamaḥ
yaḥ - anyone who; śāstra-ādiṣu - in the revealed scriptures; anipuṇaḥ - not very expert; śraddhāvān - full of faith; saḥ - he; tu - certainly; madhyamaḥ - second-class or middle-class devotee.
This verse appears in the Bhakti-rasāmṛta-sindhu (1.2.18).