Add something like
pawn Код:
print("check 1");
<MySQL-Command>
print("check 2");
...
to detect the source of the error.
If you can't fix it yourself post the code-segment where it occurs.
-----------------
Just noticed that this would be of no avail if there is no message in the cmd.
You could write it in the file instead or - because it seems the error occurs immediately - check the first few used MySQL-commands
BTW: Use the "code"-tags to prevent from showing smilies.