you have an error in your sql syntax near 39 3939 at line 1 python