For me, there was an error in my SQL query that was giving me this error. Check if the query that you are running works in your database management system!