I am getting the following error in the database
Databases don't raise errors, queries & commands do.
That's really to less on informations.
What for database system are you using, when & where do the error message occur ... and much more details ...