So you're running the Moodle cron in two different ways? One shows an error and one does not? Maybe different PHP binaries (executables) are being used: the one without error has the required PHP extensions – such as MySQLi for database access – and the other is missing these extensions.
If you're getting the error every minute then presumably it's the crontab (scheduled task) entry that's wrong. What is the path to the PHP binary currently? Try changing it to /usr/bin/php.
(Mods: This post may need moving to the General help forum).