the below code is causing two records to be inserted into mysql. I have no idea why. when i remove it no record is entered. When i add it two duplicate records are entered. Any idea why? it is in an if statement. What would cause it to be inserted twice?

query2 = "INSERT INTO Stacks";
															  $query2 .= "(`username`,`reply`,`number`,`ip`,`posted`,`origin`,`keywords`,`avatar`,`Positive`,`Negative`) VALUES ('$usernames','$info','$idtwo','$ip',NOW(),0,'$keywords','$avatarreply','0','0')";
															  $results2 = mysql_query($query2);