no, the code seems to be okay, you might try removing the limit 0 and see what happens, and if that suit your needs...
if not you need to give us more information about your database structure and your script as we dont know what you want to do
also it might be helpful if you read up the basic mysql functions as select, update, insert eg here: http://www.mysql.com/doc/en/index.html