Then that should be fine, assuming that taskid is an actual integer and not a string, and done is an integer and not a string.
Use a die on the query to verify your columns
mysql_query($sQry) or die(mysql_error());. That'll kill the script with an error output if it fails to parse the SQL properly. Given the previous queries you have here, my suspicion is that the table othertodo may not exist.