I registered on your site hoping to find help because I started with Python ...

I'm interested for quite some time to this language but it is only fairly recently that I decided to hang in my discovery and my learning (non-professional, staff only) of Python.
Beside that, I use a lot PHP (and of course html, css, javascript), so I think I could be interested in sites development with Python ... But I'm not yet to this point! :)
For now I am facing some difficulties which I would appreciate your opinions and advice:

I work on a small application (thus Python, + wxpython) that uses sqlite, I created a class for the connection and perform treatments on my database, yet I get an error when executing of a method in my class that I can not explain.
Here the message:

I do not understand this error, and I do not know what do to fix this problem ... I do not understand what refers to the space of ' near " " ', nonetheless my query returns the expected outcome.
I tried the same query in sqlite console, myself i give the value of the id field, and I have no error message.

So I think the error is related to the use of this variable but I do not know how else to pass it into my query string.

In advance thank you for your hospitality and your help! Good day everyone. :)
******************************************************************************

I registered on your site hoping to find help because I started with Python ...

I'm interested for quite some time to this language but it is only fairly recently that I decided to hang in my discovery and my learning (non-professional, staff only) of Python.
Beside that, I use a lot PHP (and of course html, css, javascript), so I think I could be interested in sites development with Python ... But I'm not yet to this point! :)
For now I am facing some difficulties which I would appreciate your opinions and advice:

I work on a small application (thus Python, + wxpython) that uses sqlite, I created a class for the connection and perform treatments on my database, yet I get an error when executing of a method in my class that I can not explain.
Here the message:

I do not understand this error, and I do not know what do to fix this problem ... I do not understand what refers to the space of ' near " " ', nonetheless my query returns the expected outcome.
I tried the same query in sqlite console, myself i give the value of the id field, and I have no error message.

So I think the error is related to the use of this variable but I do not know how else to pass it into my query string.

In advance thank you for your hospitality and your help! Good day everyone. :)
******************************************************************************

I registered on your site hoping to find help because I started with Python ...

I'm interested for quite some time to this language but it is only fairly recently that I decided to hang in my discovery and my learning (non-professional, staff only) of Python.
Beside that, I use a lot PHP (and of course html, css, javascript), so I think I could be interested in sites development with Python ... But I'm not yet to this point! :)
For now I am facing some difficulties which I would appreciate your opinions and advice:

I work on a small application (thus Python, + wxpython) that uses sqlite, I created a class for the connection and perform treatments on my database, yet I get an error when executing of a method in my class that I can not explain.
Here the message:

I do not understand this error, and I do not know what do to fix this problem ... I do not understand what refers to the space of ' near " " ', nonetheless my query returns the expected outcome.
I tried the same query in sqlite console, myself i give the value of the id field, and I have no error message.

So I think the error is related to the use of this variable but I do not know how else to pass it into my query string.

In advance thank you for your hospitality and your help! Good day everyone. :)
******************************************************************************

I mean: When you write properly Python according the language philosophy 'code is read more often than written' you also know what you have written before, not only God (like with writing PHP, Perl or J code)