Hello friends i have a small problem in retrieving data from a sql database. I am able to save data into the table and even retrieve it in other parts of my program. But in this place i am having a sql error .

Qt Code:
  1. for(int i=0; i <dbrowcount.count();i++)
  2. {
  3. if((dbrowcount.at(i)>0)&&(dbrowcount.at(i)<33))
  4. {
  5. deletenum = dbrowcount.at(i);
  6. QSqlQuery sqp("SELECT Box1 FROM tempBulkdb rowid ="+ QString::number(deletenum));
  7. if(sqp.exec())
  8. {
  9. if (sqp.first())
  10. {
  11. do
  12. {
  13. boxtempchn.push_back(sqp.value(0).toString());
  14. } while(sqp.next());
  15. }
  16. }
  17.  
  18. qDebug()<< sqp.lastError().text();
  19. qDebug()<<boxtempchn;
  20. }
To copy to clipboard, switch view to plain text mode 
dbrowcount has the row number and the size of the list. I have 10 nested else if condition i have put only the first condition , i am testing the first condition only now.
i get a sql error. I don't know if i am doing any thing wrong.
This is the Sql Error i am getting.
Qt Code:
  1. No query Unable to fetch row
To copy to clipboard, switch view to plain text mode 

thank you