Make sure if you run direct query to database than don't forget to recalculate all points and other require stuffs. However, personally, I would never recommend to run direct query. Instead use Q2A core function to delete question based on query result.