Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/sunnygoy/public_html/ on line 3

How can I hide the notification from lock screen

To hide notification from lockscreen, you have to change system settings to hide sensitive notifications:
System Settings > Sound & notifications > When device is locked > Hide sensitive notification content.

And you also need to have a secure lockscreen (password/pin/pattern)

Alternatively if position is set to 'Not pinned & no icon', the widget is not displayed on lock screen