Process Queue from console ERROR -only from console

I’ve searched for this issue for a couple of months now with no solution.

I have phplist v.3.6.7 installed on Ubuntu 18.04.2 LTS
Until about 3 months ago, it was working well. I was processing the queue from console manually (only send out once a month) using the command line phplist -pprocessqueue
Then I started getting this message on console:
# phplist -pprocessqueue
The following PHP extensions are missing:<br>mysqli<br>

There were acouple of other extensions on the list, but by re-installing them, the message for those went away. However, mysqli doesn’t, even after reinstalling it.

PHP info shows:

MysqlI Support enabled
Client API library version mysqlnd 7.4.28
Active Persistent Links 0
Inactive Persistent Links 0
Active Links 0
Directive Local Value Master Value
mysqli.allow_local_infile On On
mysqli.allow_persistent On On
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket no value no value
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.max_persistent Unlimited Unlimited
mysqli.reconnect Off Off
mysqli.rollback_on_cached_plink Off Off

Processing the queue from the browser works fine.
PHP v.7.4.28
phplist v.3.6.7
I am at a loss as to why processing the list from console, doesn’t seem to recognize mysqli. I’ve also updated phplist after the issue started, but the error persists.
Any suggestions are welcome.
Thank you,

@TomasFC The version and configuration of php run from the command line could be different to that run by the web server.

Thank you Duncan. I did not know this could be the case. Thank you. That was the issue! It’s finally solved.