Or, let MySQL figure this out. If this field is of type auto_increment, don't even insert into it
$query = "INSERT INTO MyTable (id, name, data) VALUES ( '', 'brad', 'is testing')";
Or, you can specifically tell it what the next id is:
$query = "INSERT INTO MyTable (id, name, data) VALUES ( MAX(id)+1, 'brad', 'is testing')";