If the verse is in the Tipitaka it should be, “sabbe pothujjanā ummattakā” meaning, “all average humans are engaged in useless activities like those who are insane”.
I have heard bhikkhus reciting that verse but I cannot find a sutta with that verse.
Sabbe = all; pothujjanā = average humans who have not attained at least the Sotapanna Anugami level
ummattakā = insane/mad (meaning “engaged in unfruitful activities”)
The verse, “..kāmesu kāmasukhallikānuyogo hīno gammo pothujjaniko anariyo anatthasaṁhito..” is in the Dhammacakkappavattana Sutta (SN 56.11).